Update first-steps.md
I have check in the code and found that default role added in behaviour is Admin, so please update readme
This commit is contained in:
@ -30,7 +30,7 @@ Put this in your migration:
|
||||
$auth = Yii::$app->authManager;
|
||||
|
||||
// create a role named "administrator"
|
||||
$administratorRole = $auth->createRole('administrator');
|
||||
$administratorRole = $auth->createRole('admin');
|
||||
$administratorRole->description = 'Administrator';
|
||||
$auth->add($administratorRole);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user