From 388d821f45943914e8229446451ea73913de6cee Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sat, 24 Feb 2024 10:53:09 -0800 Subject: [PATCH] Fix: only require DjangoModelPermissions for app config --- src/paperless/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paperless/views.py b/src/paperless/views.py index 1151ceed5..974830d83 100644 --- a/src/paperless/views.py +++ b/src/paperless/views.py @@ -14,7 +14,7 @@ from rest_framework.authtoken.models import Token from rest_framework.filters import OrderingFilter from rest_framework.generics import GenericAPIView from rest_framework.pagination import PageNumberPagination -from rest_framework.permissions import DjangoObjectPermissions +from rest_framework.permissions import DjangoModelPermissions from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView @@ -171,7 +171,7 @@ class ApplicationConfigurationViewSet(ModelViewSet): queryset = ApplicationConfiguration.objects serializer_class = ApplicationConfigurationSerializer - permission_classes = (IsAuthenticated, DjangoObjectPermissions) + permission_classes = (IsAuthenticated, DjangoModelPermissions) class DisconnectSocialAccountView(GenericAPIView):