Skip to content

Conversation

@ivinayakg
Copy link
Contributor

@ivinayakg ivinayakg commented Sep 15, 2023

#33

Brief

  • Added constants for user roles
  • Added function to restrict access on routes based on roles
  • Function takes in an array of roles, and returns a middleware, which checks for those roles. If any one of the roles are present in the user, then it will grant access.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants