yii2-usuario icon indicating copy to clipboard operation
yii2-usuario copied to clipboard

RBAC setup?

Open srakl opened this issue 3 years ago • 0 comments

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?

srakl avatar Oct 26 '22 13:10 srakl