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

tutors can now only access participants from their groups again.

parent c9652bd1
No related branches found
No related tags found
1 merge request!279Resolve "Reviewers should be able to assign Exercise-Groups to Tutors"
......@@ -333,10 +333,6 @@ class UserAccountViewSet(viewsets.ReadOnlyModelViewSet):
@action(detail=True, methods=['patch'], permission_classes=(IsReviewer,))
def change_groups(self, request, *args, **kwargs):
print("\n data: ")
print(request.data)
print("\n")
print(type("hi"))
# for some reason only the newly added groups come as a group object
groups = [x.get('pk') if type(x) is not str else x for x in request.data]
req_user = request.user
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment