def modify_permissions(self, permissions):
group = Group.objects.get(name='<STR_LIT>')<EOL>if permissions == '<STR_LIT>':<EOL><INDENT>self.groups.add(group)<EOL><DEDENT>else:<EOL><INDENT>self.groups.remove(group)<EOL><DEDENT>
Modify the user's permissions.