I am using yii2 basic
I have Employee table and I have assigned Employee model to user application component as follows in config file:
‘user’ => [
‘identityClass’ => ‘app\models\Employee’,
‘enableSession’ => true,
],
I have also created permissions, roles and assigned roles to employees using RBAC.
I have created CRUD’S for all auth_item, auth_assignment, auth_rule, auth_item_child.
Admin is only going to assign roles to emplowyees. So should I create a menu Roles on side bar and link the auth_assignment CRUD to it? or what is convenient way for role assignment.
If I allow the admin to assign roles using auth_assignment CRUD, then he may get confused about which item_name is role and which is permission.
For, eg. item_name consist of admin, createEmp, createGroup, etc.
Here admin clearly states that it is role whereas createEmp and createGroup are permissions
So how to accomplish this?