Commit 5983259a authored by Joren Vrancken's avatar Joren Vrancken
Browse files

Merge branch 'fix/no-admin-group-nextcloud' into 'master'

Exclude groups named admin from nextcloud api

See merge request !1108
parents fec53980 d1b18246
......@@ -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