From 7afe07018edac5adc34f1d3a83bb607f13367b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Fri, 3 Apr 2020 21:27:44 +0200 Subject: [PATCH] Fix app_map --- 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 9cd8097d3..d72e439bb 100644 --- a/src/yunohost/app.py +++ b/src/yunohost/app.py @@ -219,7 +219,7 @@ def app_map(app=None, raw=False, user=None, permission=None): if user not in main_perm["corresponding_users"]: continue - this_app_perms = {p: i for p, i in permissions.items() if p.startswith(app_id + ".") and i["url"]} + this_app_perms = {p: i for p, i in permissions.items() if p.startswith(app_id + ".") and (i["url"] or i['additional_urls'] != [None])} for perm_name, perm_info in this_app_perms.items(): # If we're building the map for a specific user, check the user # actually is allowed for this specific perm