mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
List all permissions in app_info() output, not just those with actual urls ... otherwise for example the user won't be able to change the label from the webadmin for non-webapps ?
This commit is contained in:
parent
d96d06e915
commit
5c19fb0a42
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ def app_info(app, full=False):
|
|||
os.path.exists(os.path.join(APPS_SETTING_PATH, app, "scripts", "restore")))
|
||||
ret['supports_multi_instance'] = is_true(local_manifest.get("multi_instance", False))
|
||||
permissions = user_permission_list(full=True, absolute_urls=True)["permissions"]
|
||||
ret['permissions'] = {p: i for p, i in permissions.items() if p.startswith(app + ".") and (i["url"] or i['additional_urls'])}
|
||||
ret['permissions'] = {p: i for p, i in permissions.items() if p.startswith(app + ".")}
|
||||
ret['label'] = permissions.get(app + ".main", {}).get("label")
|
||||
if not ret['label']:
|
||||
logger.warning("Failed to get label for app %s ?" % app)
|
||||
|
|
Loading…
Add table
Reference in a new issue