Skip to content

Commit

Permalink
explicit permissions error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Feb 19, 2025
1 parent 565b660 commit aa9ccef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_beacon/authz/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,6 @@ def decorated_func(*args, **kwargs):
if g.permissions.get(P_QUERY_DATA, False):
return f(*args, **kwargs)
else:
raise PermissionsException()
raise PermissionsException(f"Insufficient permissions: requires permission {P_QUERY_DATA}")

return decorated_func

0 comments on commit aa9ccef

Please sign in to comment.