Skip to content
Snippets Groups Projects
Commit 2defb41f authored by Jakob Dieterle's avatar Jakob Dieterle
Browse files

fixing for tests

parent 96bd1a77
No related branches found
No related tags found
1 merge request!279Resolve "Reviewers should be able to assign Exercise-Groups to Tutors"
Pipeline #216711 failed
......@@ -86,7 +86,6 @@ class StudentReviewerApiViewSet(viewsets.ReadOnlyModelViewSet):
user__exercise_groups__in=self.request.user.exercise_groups.all()
)
else:
return []
......@@ -353,10 +352,8 @@ class UserAccountViewSet(viewsets.ReadOnlyModelViewSet):
if req_user.is_student() or req_user.is_tutor():
return Response(status.HTTP_403_FORBIDDEN)
user = self.get_object()
user_groups = [GroupSerializer(group) for group in user.exercise_groups.all()]
return Response(user.exercise_groups, status=status.HTTP_200_OK)
@action(detail=False)
def me(self, request):
serializer = self.get_serializer(request.user)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment