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

Exclude groups named admin from nextcloud api

parent fec53980
......@@ -34,7 +34,8 @@ class NextCloudUsersView(ListAPIView):
class NextCloudGroupsView(ListAPIView):
permission_classes = [NextCloudPermission]
queryset = MemberGroup.objects.all()
queryset = MemberGroup.objects.exclude(
name_en='admin', name_nl='admin').all()
serializer_class = NextCloudGroupSerializer
def list(self, request, *args, **kwargs):
......
Supports Markdown
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