You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a GET /user/{id}/has_permission endpoint for checking permissions analogous to the has_permission method (e.g. /user/{id}/has_permission?permission_name=WriteTeams);
The endpoint returns a boolean value;
The endpoint can only be utilized by authenticated users;
When receiving a request regarding a nonexistent permission, 404 is returned.
How to test:
Create a user with and grant them a permission.
Make a request regarding a permission they have, one they don't, and one that does not exist. Check if responses match expected values.
TO-DO:
GET /user/{id}/has_permissionendpoint for checking permissions analogous to the has_permission method (e.g./user/{id}/has_permission?permission_name=WriteTeams);How to test: