summaryrefslogtreecommitdiffstats
path: root/module/web/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/utils.py')
-rw-r--r--module/web/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/module/web/utils.py b/module/web/utils.py
index a89c87558..5cb0cebdd 100644
--- a/module/web/utils.py
+++ b/module/web/utils.py
@@ -104,6 +104,7 @@ def login_required(perm=None):
if s.get("name", None) and s.get("authenticated", False):
if perm:
perms = parse_permissions(s)
+
if perm not in perms or not perms[perm]:
if request.headers.get('X-Requested-With') == 'XMLHttpRequest':
return HTTPError(403, "Forbidden")