Я брал расширение mdmsoft/yii2-admin, но когда распределяю роли
public function behaviors()
{
return [
'verbs' => [
'class' => VerbFilter::className(),
'actions' => [
'delete' => ['POST'],
],
],
'access' => [
'class' => AccessControl::className(),
'only' => ['index', 'create', 'delete', 'update', 'view'],
'rules' => [
[
'actions' => ['index'],
'allow' => true,
'roles' => ['@'],
],
[
'actions' => ['create'],
'allow' => true,
'roles' => ['shop'],
],
[
'actions' => ['delete'],
'allow' => true,
'roles' => ['admin'],
],
[
'actions' => ['update'],
'allow' => true,
'roles' => ['admin'],
],
[
'actions' => ['view'],
'allow' => true,
'roles' => ['admin']
],
],
],
];
Ссылка на гитхабе
https://github.com/hollandit/crm.git
И у меня даже роль shop открывает те страницы где указан только admin