2amigos / yii2-usuario

Highly customizable and extensible user management, authentication, and authorization Yii2 extension
https://github.com/2amigos/yii2-usuario
Other
294 stars 142 forks source link

RBAC setup? #480

Open srakl opened 1 year ago

srakl commented 1 year ago

in my modules i have this

 'admin' => [
                    'class' => \Da\User\Controller\AdminController::class,
                    //'administratorPermissionName' => 'admin',
                    'as access' => [
                        'class' => yii\filters\AccessControl::class,
                        'rules' => [
                            //['allow' => true, 'actions' => ['index','switch-identity']],
                            ['allow' => true, 'permissions' => ['admin']],
                        ],
                    ],
                ],

but my when i got to https://blabla.com/backend/web/user/admin/index/ i'm getting a yii\web\ForbiddenHttpException error

how do you set this up? what am i missing?

is there any full tutorial to set up RBAC?