mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Fix app_map
This commit is contained in:
parent
dc38d57baa
commit
7afe07018e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue