mirror of https://github.com/jumpserver/jumpserver
15 lines
359 B
Python
15 lines
359 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from rest_framework import viewsets
|
|
|
|
from common.permissions import IsSuperUserOrAppUser
|
|
from .models import Organization
|
|
from .serializers import OrgSerializer
|
|
|
|
|
|
class OrgViewSet(viewsets.ModelViewSet):
|
|
queryset = Organization.objects.all()
|
|
serializer_class = OrgSerializer
|
|
permission_classes = (IsSuperUserOrAppUser,)
|