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.
When admin assigns a particular employee multiple roles, for eg. roles ‘fieldofficer’ as well as ‘Pastor’, then he should see on his sidebar foll menus:
-
My Profile
-
SHGProfile - for role fieldofficer
-
Church Members - for role Pastor
How to accomplish this?