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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
app/api/views.py
|
|
@ -219,7 +219,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): |
|
|
|