Skip to content

Has permission endpoint #71

Description

@Mateusz-Dobrzynski

TO-DO:

  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions