Why dektrium/yii2-rbac does not work out of the box?

I put clean yii2, put dektrium/yii2-rbac. As written in the manual, completed the migration. Not previously configured the authManager. Here is my configuration file:

'components' => [
 'request' => [
 'cookieValidationKey' => 'asdasd123456qwerty',
 'cache' => [...],
 'user' => [
 'identityClass' => 'app\models\User',
 'enableAutoLogin' => true,
 'errorHandler' => [...],
 'mailer' => [...],
 'log' => [...],
 'db' => require(__DIR__ . '/db-local.php'),
 'urlManager' => [...],
'params' => $params,
'modules' => [
 'rbac' => 'dektrium\rbac\RbacWebModule',

In the console config, I added:
'modules' => [
 'rbac' => 'dektrium\rbac\RbacWebModule',

When I go to localhost/basic/web/rbac (asks to login is admin/admin), it gives an error (403 Forbidden). What am I missing?
July 2nd 19 at 17:06
1 answer
July 2nd 19 at 17:08
You do not have access rights. We must look for the right action login, the access should be available to all users. Or as an option it is for You loginit, but then redirected to the page for which You have no rights.
Yes, I understand that no rights from me. I just don't know where to ask them. I have not created a controller for rbaca in which I could rule prescribe. - Armando.Leuschke commented on July 2nd 19 at 17:11
: open dektrium\rbac\RbacWebModule way controller and see what's there. - Henderson_Beat commented on July 2nd 19 at 17:14

Find more questions by tags Yii