This is possible to set permission with RBAC methods (Role, Permission) to access a module in Yii2?
I want to allow users with spacial Role to access for one of my module.
I use Filter for this purpose:
'modules' => [
'roles' => [
'class' => 'aj\admin\Module',
'as access' => [
'class' => 'yii\filters\AccessControl',
'rules' => [
[
'allow' => true,
'roles' => ['Administrator'],
]
]
],
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With