Skip to content

Commit

Permalink
Remove IsAuthenticated permission from media views
Browse files Browse the repository at this point in the history
Resolves #1612
  • Loading branch information
JeltevanBoheemen committed Jun 20, 2024
1 parent 4166fc0 commit 2357d11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/media/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class GetMediaView(APIView):
Return the image/pdf of a document
'''

permission_classes = [IsAuthenticated, CorpusAccessPermission]
permission_classes = (CorpusAccessPermission,)

def get(self, request, *args, **kwargs):
corpus_name = corpus_name_from_request(request)
Expand Down Expand Up @@ -60,7 +60,7 @@ class MediaMetadataView(APIView):
Return metadata on the media for a document
'''

permission_classes = [IsAuthenticated, CorpusAccessPermission]
permission_classes = (CorpusAccessPermission,)

def post(self, request, *args, **kwargs):
corpus_name = corpus_name_from_request(request)
Expand Down

0 comments on commit 2357d11

Please sign in to comment.