Skip to content

Commit

Permalink
Add authentication classes to split and attachment endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoenen committed Mar 7, 2019
1 parent 0728d39 commit 235859c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/app/signals/apps/signals/v1/private/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ class PrivateSignalSplitViewSet(mixins.CreateModelMixin, mixins.RetrieveModelMix
queryset = Signal.objects.all()
pagination_class = None

authentication_classes = (JWTAuthBackend,)
permission_classes = (SIAPermissions,)


class PrivateSignalAttachmentsViewSet(mixins.CreateModelMixin, mixins.ListModelMixin,
viewsets.GenericViewSet):
serializer_class = PrivateSignalAttachmentSerializer
pagination_class = None

queryset = Signal.objects.all()

authentication_classes = (JWTAuthBackend,)
permission_classes = (SIAPermissions,)


Expand Down

0 comments on commit 235859c

Please sign in to comment.