mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
appsv2: when initalizing permission, make sure to add 'all_users' when visitors is chosen
This commit is contained in:
parent
c179d4b88f
commit
71042f0860
1 changed files with 5 additions and 0 deletions
|
@ -348,6 +348,11 @@ class PermissionsResource(AppResource):
|
|||
or self.get_setting(f"init_{perm}_permission")
|
||||
or []
|
||||
)
|
||||
|
||||
# If we're choosing 'visitors' from the init_{perm}_permission question, add all_users too
|
||||
if not infos["allowed"] and init_allowed == "visitors":
|
||||
init_allowed = ["visitors", "all_users"]
|
||||
|
||||
permission_create(
|
||||
perm_id,
|
||||
allowed=init_allowed,
|
||||
|
|
Loading…
Add table
Reference in a new issue