D
D
devianllert2018-05-23 21:26:07
MongoDB
devianllert, 2018-05-23 21:26:07

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

1 answer(s)
E
Evgeny Kulakov, 2018-05-23
@devianllert

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 question

Ask a Question

731 491 924 answers to any question