Skip to content

Commit 2039c2b

Browse files
committed
update access denied error message for those who arent school owners
1 parent 2296877 commit 2039c2b

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
@@ -304,7 +304,7 @@ def check_for_roles(roles:list, accept_any=True):
304304

305305
def check_ownership(school):
306306
if get_api_user_id() not in school.owner_id:
307-
raise Oops("Authorizing user is not the owner of this school", 401)
307+
raise Oops("Authorizing user does not have permission to access the requested school", 401)
308308

309309

310310
def list_owned_school_ids(cursor, school_id):

0 commit comments

Comments
 (0)