Answer the question
In order to leave comments, you need to log in
How to assign rights to users?
Rights
table: Users table: Log
in as admin , we are redirected to the main page, greetings, etc.
and here, on the main page, for each user group, you need to display different content. Probably, in addition to the login and password, you need to enter something else into the session for identification?
In general, the sequence of actions?
Answer the question
In order to leave comments, you need to log in
Selective access control ( read )
Mandatory access control ( read )
Role-based access control ( read )
The vast majority of modern systems (like WP for example) use RBAC. Your case is also covered. Read the description, google for examples.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question