aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/wqflask/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/decorators.py b/wqflask/wqflask/decorators.py
index cd06aee7..843539ee 100644
--- a/wqflask/wqflask/decorators.py
+++ b/wqflask/wqflask/decorators.py
@@ -88,7 +88,7 @@ def edit_admins_access_required(f):
except:
response = {}
if max([AdminRole(role) for role in response.get(
- "data", ["not-admin"])]) >= AdminRole.EDIT_ADMINS:
+ "admin", ["not-admin"])]) < AdminRole.EDIT_ADMINS:
return "You need to have edit-admins access", 401
return f(*args, **kwargs)
return wrap