fix(mycloud-nextcloud): add group all
This commit is contained in:
parent
1af602582c
commit
aa6f1bfb6e
1 changed files with 1 additions and 0 deletions
|
@ -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")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue