Fix smoll bug

This commit is contained in:
Kay0u 2020-03-23 00:40:22 +01:00
parent b9aa5d143f
commit 8a1cc89d97
No known key found for this signature in database
GPG key ID: 7FF262C033518333

View file

@ -461,7 +461,7 @@ def app_map(app=None, raw=False, user=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
if user and user not in perm_info["corresponding_users"] and "visitors" not in perm_info["allowed"]:
if user and user not in perm_info["corresponding_users"]:
continue
if perm_info["url"].startswith("re:"):
# Here, we have an issue if the chosen url is a regex, because