Skip to content

Commit

Permalink
Use RDMAdministrator permission class
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Nov 20, 2024
1 parent 8874de9 commit 0872525
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions arches_lingo/views/api/pythonic_models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from rest_framework.permissions import IsAuthenticated
from rest_framework.generics import ListCreateAPIView, RetrieveUpdateDestroyAPIView

from arches.app.permissions.rest_framework import RDMAdministrator
from arches.app.views.api.mixins import ArchesModelAPIMixin

from arches_lingo.serializers import (
Expand All @@ -12,40 +12,40 @@


class SchemeListCreateView(ArchesModelAPIMixin, ListCreateAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = SchemeSerializer


class SchemeDetailView(ArchesModelAPIMixin, RetrieveUpdateDestroyAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = SchemeSerializer


class SchemeStatementListCreateView(ArchesModelAPIMixin, ListCreateAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = SchemeStatementSerializer


class SchemeStatementDetailView(ArchesModelAPIMixin, RetrieveUpdateDestroyAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = SchemeStatementSerializer


class ConceptListCreateView(ArchesModelAPIMixin, ListCreateAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = ConceptSerializer


class ConceptDetailView(ArchesModelAPIMixin, RetrieveUpdateDestroyAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = ConceptSerializer


class ConceptStatementListCreateView(ArchesModelAPIMixin, ListCreateAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = ConceptStatementSerializer


class ConceptStatementDetailView(ArchesModelAPIMixin, RetrieveUpdateDestroyAPIView):
permission_classes = [IsAuthenticated]
permission_classes = [RDMAdministrator]
serializer_class = ConceptStatementSerializer

0 comments on commit 0872525

Please sign in to comment.