mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Fix: enforce object permissions for app config (#5516)
This commit is contained in:
parent
6651c80fb9
commit
88ae60a4a0
5 changed files with 10 additions and 4 deletions
|
|
@ -11,6 +11,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 IsAuthenticated
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.viewsets import ModelViewSet
|
||||
|
|
@ -166,4 +167,4 @@ class ApplicationConfigurationViewSet(ModelViewSet):
|
|||
queryset = ApplicationConfiguration.objects
|
||||
|
||||
serializer_class = ApplicationConfigurationSerializer
|
||||
permission_classes = (IsAuthenticated,)
|
||||
permission_classes = (IsAuthenticated, DjangoObjectPermissions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue