Skip to content

Commit f46de12

Browse files
c-wmargaretmeehan
authored andcommitted
Fix spacing
1 parent e9ed5fd commit f46de12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/api/permissions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,21 @@ class IsProjectAdmin(RolePermission):
6666
class IsAnnotatorAndReadOnly(RolePermission):
6767
role_name = settings.ROLE_ANNOTATOR
6868

69+
6970
class IsAnnotator(RolePermission):
7071
unsafe_methods_check = False
7172
role_name = settings.ROLE_ANNOTATOR
7273

74+
7375
class IsAnnotationApproverAndReadOnly(RolePermission):
7476
role_name = settings.ROLE_ANNOTATION_APPROVER
7577

78+
7679
class IsAnnotationApprover(RolePermission):
7780
unsafe_methods_check = False
7881
role_name = settings.ROLE_ANNOTATION_APPROVER
7982

83+
8084
def is_in_role(role_name, user_id, project_id):
8185
return RoleMapping.objects.filter(
8286
user_id=user_id,

0 commit comments

Comments
 (0)