mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
add all_users in protected_urls
This commit is contained in:
parent
aab090fa7c
commit
c3e750a97a
1 changed files with 3 additions and 1 deletions
|
@ -235,6 +235,8 @@ def translate_legacy_rules_in_ssowant_conf_json_persistent():
|
|||
protected_urls = persistent.get("protected_urls", []) + ["re:" + r for r in persistent.get("protected_regex", [])]
|
||||
unprotected_urls = persistent.get("unprotected_urls", []) + ["re:" + r for r in persistent.get("unprotected_regex", [])]
|
||||
|
||||
known_users = user_list()["users"].keys()
|
||||
|
||||
for legacy_rule in legacy_rules:
|
||||
if legacy_rule in persistent:
|
||||
del persistent[legacy_rule]
|
||||
|
@ -261,7 +263,7 @@ def translate_legacy_rules_in_ssowant_conf_json_persistent():
|
|||
|
||||
if protected_urls:
|
||||
persistent["permissions"]['custom_protected'] = {
|
||||
"users": [],
|
||||
"users": known_users,
|
||||
"label": "Custom permissions - protected",
|
||||
"show_tile": False,
|
||||
"auth_header": True,
|
||||
|
|
Loading…
Add table
Reference in a new issue