Closed tuannda closed 8 years ago
I config components in config.php with
'authManager' => [ 'class' => 'yii\rbac\DbManager', 'defaultRoles' => ['member'], ],
But when
$auth = Yii::$app->authManager; $adminRole = $auth->createPermission('admin'); $adminRole->description = "Admin Role"; $auth->add($adminRole);
I seen in DB type = 2. It's wrong..
whats wrong? permission type are 2. https://github.com/yiisoft/yii2/blob/master/framework/rbac/Item.php#L19
I config components in config.php with
But when
$auth = Yii::$app->authManager; $adminRole = $auth->createPermission('admin'); $adminRole->description = "Admin Role"; $auth->add($adminRole);
I seen in DB type = 2. It's wrong..