Browse Source

change of permission for annotation edits

pull/766/head
Christian Gill 4 years ago
parent
commit
79449b7c78
1 changed files with 1 additions and 1 deletions
  1. 2
      app/api/views.py

2
app/api/views.py

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

Loading…
Cancel
Save