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

fix classroom get_queryset

parent ddeee25d
...@@ -32,7 +32,7 @@ class BasicClassroomViewSet(viewsets.ReadOnlyModelViewSet): ...@@ -32,7 +32,7 @@ class BasicClassroomViewSet(viewsets.ReadOnlyModelViewSet):
if not self.request.user.is_superuser: if not self.request.user.is_superuser:
queryset = queryset.filter( queryset = queryset.filter(
Q(groups__in=self.request.user.groups.all()) Q(group__in=self.request.user.groups.all())
| Q(assistants=self.request.user) | Q(assistants=self.request.user)
| Q(coordinators=self.request.user) | Q(coordinators=self.request.user)
) )
......
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