Verified Commit d7ca6e55 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Exclude non-active groups from NC api

parent 6654a6f7
......@@ -37,8 +37,10 @@ class NextCloudUsersView(ListAPIView):
class NextCloudGroupsView(ListAPIView):
permission_classes = [NextCloudPermission]
queryset = MemberGroup.objects.exclude(
name_en='admin', name_nl='admin').all()
queryset = (MemberGroup.objects
serializer_class = NextCloudGroupSerializer
def list(self, request, *args, **kwargs):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment