1
0

permissions.py 394 B

12345678910
  1. from metaservicesynced.serializer import PermissionsSerializer
  2. from rest_framework import viewsets, permissions
  3. from metaservicesynced.models import Permissions
  4. class PermissionsMVS(viewsets.ModelViewSet):
  5. queryset = Permissions.objects.all()
  6. serializer_class = PermissionsSerializer
  7. #permission_classes = [IsOwnerOrReadOnly]
  8. permission_classes = [permissions.IsAuthenticated]