From 5c19fb0a420f626ba9994a691c423344f9c8e417 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 31 Oct 2020 14:13:16 +0100 Subject: [PATCH] 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 ? --- src/yunohost/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/app.py b/src/yunohost/app.py index 714580abc..79ce62d64 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -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)