Browse Source

Merge pull request #766 from cgill95/feature/annotation_approver_editing

change of permission for annotation edits
pull/832/head
Hiroki Nakayama 4 years ago
committed by GitHub
parent
commit
96054aa952
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. 2
      app/api/views.py

2
app/api/views.py

@ -219,7 +219,7 @@ class AnnotationList(generics.ListCreateAPIView):
class AnnotationDetail(generics.RetrieveUpdateDestroyAPIView): class AnnotationDetail(generics.RetrieveUpdateDestroyAPIView):
lookup_url_kwarg = 'annotation_id' lookup_url_kwarg = 'annotation_id'
permission_classes = [IsAuthenticated & (((IsAnnotator | IsAnnotationApprover) & IsOwnAnnotation) | IsProjectAdmin)]
permission_classes = [IsAuthenticated & (((IsAnnotator & IsOwnAnnotation) | IsAnnotationApprover) | IsProjectAdmin)]
swagger_schema = None swagger_schema = None
def get_serializer_class(self): def get_serializer_class(self):

Loading…
Cancel
Save