Skip to content
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

@ghost
Comment options

@bellaabdelouahab
Comment options

@ghost
Comment options

Answer selected by bellaabdelouahab
@bellaabdelouahab
Comment options

Comment options

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
1 participant