Return whether or not `user` can make changes to the class.

def can_edit(self, user):
        """Return whether or not `user` can make changes to the class."""
        return user.is_admin or not self.is_locked and self in user.admin_for