Fix: respect model permissions for tasks API endpoint (#6958)

This commit is contained in:
shamoon 2024-06-11 00:51:18 -07:00 committed by GitHub
parent d9002005b1
commit f225f72145
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1654,7 +1654,7 @@ class RemoteVersionView(GenericAPIView):
class TasksViewSet(ReadOnlyModelViewSet):
permission_classes = (IsAuthenticated,)
permission_classes = (IsAuthenticated, PaperlessObjectPermissions)
serializer_class = TasksViewSerializer
def get_queryset(self):