Keep track of the 'sublabel' for sub-permissions... c.f. also webadmin

This commit is contained in:
Alexandre Aubin 2020-10-29 21:02:08 +01:00
parent 092caba505
commit c2b24d1e1c

View file

@ -102,6 +102,7 @@ def user_permission_list(short=False, full=False, ignore_system_perms=False, abs
logger.debug("Uhoh, unknown permission %s ? (Maybe we're in the process or deleting the perm for this app...)" % main_perm_name) logger.debug("Uhoh, unknown permission %s ? (Maybe we're in the process or deleting the perm for this app...)" % main_perm_name)
continue continue
main_perm_label = permissions[main_perm_name]["label"] main_perm_label = permissions[main_perm_name]["label"]
infos["sublabel"] = infos["label"]
infos["label"] = "%s (%s)" % (main_perm_label, infos["label"]) infos["label"] = "%s (%s)" % (main_perm_label, infos["label"])
if short: if short: