Answer the question
In order to leave comments, you need to log in
How to understand and where to store that the user is an admin?
Please tell me where to store that the user is an admin and how to understand on the client that the user is an admin?
Do I understand correctly that in the database in the user table, each user has the is_admin field and on the client, as soon as the page is rendered, make a request to get is_admin, and then write it somewhere, for example, in the state?
Or what are the options?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question