From d4ebd1c0877858ac62aba91bec68219541308d6d Mon Sep 17 00:00:00 2001 From: Ewout Verlinde Date: Fri, 24 May 2024 13:31:36 +0200 Subject: [PATCH] chore: linting --- backend/api/permissions/submission_permissions.py | 2 ++ 1 file changed, 2 insertions(+) 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