From f46de12506ea6f3a0e85aeabf832b7d9aeab822a Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Sun, 11 Aug 2019 13:46:24 -0400 Subject: [PATCH] Fix spacing --- app/api/permissions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/permissions.py b/app/api/permissions.py index 1f03525c..8c6473eb 100644 --- a/app/api/permissions.py +++ b/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,