Skip to content

Commit

Permalink
fix: for real now 💀
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed May 24, 2024
1 parent b5e73d2 commit 807405e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/permissions/submission_permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def has_permission(self, request: Request, view: APIView) -> bool:
return True

def has_object_permission(self, request: Request, view: APIView, submission: Submission) -> bool:
if is_student(request.user) and submission.group.students.contains(request.user):
if is_student(request.user) and submission.group.students.filter(id=request.user.id):
return True

if is_teacher(request.user) or is_assistant(request.user):
Expand Down

0 comments on commit 807405e

Please sign in to comment.