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 2296877 commit 2039c2bCopy full SHA for 2039c2b
common/helpers.py
@@ -304,7 +304,7 @@ def check_for_roles(roles:list, accept_any=True):
304
305
def check_ownership(school):
306
if get_api_user_id() not in school.owner_id:
307
- raise Oops("Authorizing user is not the owner of this school", 401)
+ raise Oops("Authorizing user does not have permission to access the requested school", 401)
308
309
310
def list_owned_school_ids(cursor, school_id):
0 commit comments