mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Typo :[
This commit is contained in:
parent
dd9df5943e
commit
c9b8e27e32
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def user_permission_list(short=False, full=False, ignore_system_perms=False, ful
|
||||||
|
|
||||||
# Make sure labels for sub-permissions are the form " Applabel (Sublabel) "
|
# Make sure labels for sub-permissions are the form " Applabel (Sublabel) "
|
||||||
if full:
|
if full:
|
||||||
for name, infos in {k: v for k, v in permissions if not k.endswith(".main")}:
|
for name, infos in {k: v for k, v in permissions.items() if not k.endswith(".main")}:
|
||||||
main_perm_name = name.split(".")[0] + ".main"
|
main_perm_name = name.split(".")[0] + ".main"
|
||||||
main_perm_label = permissions[main_perm_name]["label"]
|
main_perm_label = permissions[main_perm_name]["label"]
|
||||||
infos["label"] = "%s (%s)" % (main_perm_label, infos["label"])
|
infos["label"] = "%s (%s)" % (main_perm_label, infos["label"])
|
||||||
|
|
Loading…
Add table
Reference in a new issue