Answer the question
In order to leave comments, you need to log in
How to create permissions for controllers in Yii framework?
There are 5 tables:
Authorization on the site is already implemented.
Users (user) can have many workgroups
(workspace)
Each group has many clients
where each client contains many projects
only the user who is in the group that the client belongs to.
And the same question for projects.
How is this done optimally in the Yii framework?
I think there should be a solution through accessRules() ? to immediately restrict access to certain actions.
Thanks for any solution!
Answer the question
In order to leave comments, you need to log in
If this is the first Yii, then read about Rbac and the use of Business rules. I think this is your case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question