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

This commit is contained in:
shamoon authored and GitHub committed 2024-06-11 00:51:18 -07:00
1 parent d9002005b1
commit f225f72145
1 file changed
+1 -1
+1 -1
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):