Fix missing parameter in role creation from command line
This commit is contained in:
@ -64,7 +64,7 @@ class CreateController extends Controller
|
||||
} else {
|
||||
$userRole = $auth->getRole($role);
|
||||
if (null === $userRole) {
|
||||
$this->stdout(Yii::t('usuario', 'Role "{0}" not found. Creating it.') . "!\n", Console::FG_GREEN);
|
||||
$this->stdout(Yii::t('usuario', 'Role "{0}" not found. Creating it.', [$role]) . "!\n", Console::FG_GREEN);
|
||||
$userRole = $auth->createRole($role);
|
||||
$auth->add($userRole);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user