Answer the question
In order to leave comments, you need to log in
Why is there a 403 error when using dektrium/yii2-rbac?
Installed this extension . Didn't do anything else. Now I'm trying to enter the pages with his admin panel at these addresses
/rbac/permission/index
rbac/role/index
rbac/rule/index
Forbidden (#403)
Вам не разрешено производить данное действие.
Answer the question
In order to leave comments, you need to log in
In a nutshell:
https://github.com/dektrium/yii2-rbac/blob/master/...
https://github.com/dektrium/yii2-rbac/blob/master/...
More details:
'modules' => [
'rbac' => [
'class' => 'dektrium\rbac\RbacWebModule',
'admins' => ['me'], // me - username под которым логинишься в приложение
]
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question