Skip to content

Commit 07012ed

Browse files
committed
include school admin role in role check
1 parent 81c2129 commit 07012ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def requires_admin(f):
400400
@wraps(f)
401401
def decorated(*args, **kwargs):
402402

403-
is_admin = check_for_roles(["admin"])
403+
is_admin = check_for_roles(["admin", "school admin"])
404404
if is_admin is None:
405405
raise Oops("There must be a user signed in to perform this action",
406406
400, title="No User Authorization")

0 commit comments

Comments
 (0)