Issue
I am using DbManager for RBAC. What is a good strategy for updating the RBAC database tables once they have been created? Is there a good extension that can be used to view the roles and rules and update them?
Solution
For RBAC with DbManager, (Yii2 Adevanced Template ) i use
- In
auth_permission
table i useTYPE_PERMISSION
for assign the permission (what i check for grant access) andTYPE_ROLE
for create a application role. auth_assignment
table for assign the role to the user.auth_item_child
table for grouping the permission to a role.
For manage this a i have create a few views with gii, based on the normal RBAC table
I Hope this is useful for you
Answered By - ScaisEdge
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.