Browse Source

Fix spacing

pull/333/head
Clemens Wolff 5 years ago
committed by margaretmeehan
parent
commit
f46de12506
1 changed files with 4 additions and 0 deletions
  1. 4
      app/api/permissions.py

4
app/api/permissions.py

@ -66,17 +66,21 @@ class IsProjectAdmin(RolePermission):
class IsAnnotatorAndReadOnly(RolePermission):
role_name = settings.ROLE_ANNOTATOR
class IsAnnotator(RolePermission):
unsafe_methods_check = False
role_name = settings.ROLE_ANNOTATOR
class IsAnnotationApproverAndReadOnly(RolePermission):
role_name = settings.ROLE_ANNOTATION_APPROVER
class IsAnnotationApprover(RolePermission):
unsafe_methods_check = False
role_name = settings.ROLE_ANNOTATION_APPROVER
def is_in_role(role_name, user_id, project_id):
return RoleMapping.objects.filter(
user_id=user_id,

Loading…
Cancel
Save