diff --git a/backend/api/permissions/submission_permissions.py b/backend/api/permissions/submission_permissions.py index 9996444c..8533c97f 100644 --- a/backend/api/permissions/submission_permissions.py +++ b/backend/api/permissions/submission_permissions.py @@ -36,9 +36,11 @@ def has_object_permission(self, request: Request, view: APIView, obj: Submission return obj.group.students.filter(id=user.id).exists() + class SubmissionFeedbackPermission(SubmissionPermission): def has_permission(self, request: Request, view: APIView) -> bool: return True + def has_object_permission(self, request: Request, view: APIView, obj: Submission) -> bool: return True