Answer the question
In order to leave comments, you need to log in
How to properly use RBAC with different models?
Good day! There is a project, the advanced template is used. In the backend, authorization goes through the employee table, in the frontend, authorization goes through customers. Let's say now I'm making RBAC based on employee and making manager and admin roles there. But, if the customer wants to add roles to clients, how can you get out of this situation?
I have been using Yii recently (about six months) and have not worked with rbac before, but if I understood correctly from the documentation, then out of the box it is impossible to organize the storage of a role in each of the tables, for example, in employee - role = admin || manager. There, or stored in files, or in the database. Help me figure it out, rbac is driving me straight into a stupor.
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