Refactor security.py
and add error message for insufficient permissions
#310
Labels
enhancement
New feature or request
in_dev
This is merged into the dev environment and waiting to be merged into main
refactor
Improve the code without changing the underlying logic
Both
is_valid
andapi_required
are fairly dense with if-conditionals whose logic it can be difficult to parse without digging deep into it. This could benefit from refactoring.In addition, there is no error message for when a user does not have the correct permissions to perform an action. For additional clarity, we probably want to add this.
The text was updated successfully, but these errors were encountered: