Skip to content

Role based authorization #66

Closed Answered by muttaqin1
muttaqin1 asked this question in Q&A
Jul 13, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Yes, Thats correct we have to validate the roles or every authority.
The logic to validate every authority is already implemented.

so we can do this:
We will validate User role by the Role and all the upper level roles like Admin, superAdmin will be validated by authorities.
Now just we have to remove the authController restrictTo middleware.
By doing this we can achieve a great admin management.
@bellaabdelouahab

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@bellaabdelouahab
Comment options

@muttaqin1
Comment options

muttaqin1 Jul 14, 2023
Collaborator Author

@bellaabdelouahab
Comment options

@muttaqin1
Comment options

muttaqin1 Jul 16, 2023
Collaborator Author

Answer selected by bellaabdelouahab
@bellaabdelouahab
Comment options

Comment options

muttaqin1
Jul 17, 2023
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
bug Something isn't working
2 participants