fix(mycloud-nextcloud): add group all

This commit is contained in:
WrenIX 2024-09-28 18:49:38 +02:00
parent 1af602582c
commit aa6f1bfb6e
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5

View file

@ -42,6 +42,7 @@ spec:
scope_name: profile scope_name: profile
expression: |- expression: |-
groups = [group.name for group in user.ak_groups.all() if group.attributes.get("nextcloud_group", False)] groups = [group.name for group in user.ak_groups.all() if group.attributes.get("nextcloud_group", False)]
groups.append("all")
if user.is_superuser and "admin" not in groups: if user.is_superuser and "admin" not in groups:
groups.append("admin") groups.append("admin")