Answer the question
In order to leave comments, you need to log in
What is the best way to divide users into roles?
We all know that data on the front can be replaced, hence the question. How is it better to implement the separation of users and admins in the MEVN stack so that at the front a person cannot bypass this system in any way. And for example, how to control buttons and features (edit, delete, etc.) for certain pages of the site.
Answer the question
In order to leave comments, you need to log in
The control must be on the server. You can send the user's rights with the user profile and hide the corresponding elements on the front.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question