We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81c2129 commit 07012edCopy full SHA for 07012ed
common/helpers.py
@@ -400,7 +400,7 @@ def requires_admin(f):
400
@wraps(f)
401
def decorated(*args, **kwargs):
402
403
- is_admin = check_for_roles(["admin"])
+ is_admin = check_for_roles(["admin", "school admin"])
404
if is_admin is None:
405
raise Oops("There must be a user signed in to perform this action",
406
400, title="No User Authorization")
0 commit comments