Commit e03e81fa authored by Bruno Martin's avatar Bruno Martin
Browse files

fix permissions

parent 08f7a408
......@@ -12,5 +12,5 @@ class IsClassroomAssistantOrCoordinatorOrReadOnly(permissions.BasePermission):
return True
elif request.user and request.user.is_superuser:
return True
elif request.user and (request.user in obj.assistants or request.user in obj.coordinators):
elif request.user and (request.user in obj.assistants.all() or request.user in obj.coordinators.all()):
return True
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment