mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: respect model permissions for tasks API endpoint (#6958)
This commit is contained in:
parent
d9002005b1
commit
f225f72145
@ -1654,7 +1654,7 @@ class RemoteVersionView(GenericAPIView):
|
||||
|
||||
|
||||
class TasksViewSet(ReadOnlyModelViewSet):
|
||||
permission_classes = (IsAuthenticated,)
|
||||
permission_classes = (IsAuthenticated, PaperlessObjectPermissions)
|
||||
serializer_class = TasksViewSerializer
|
||||
|
||||
def get_queryset(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user