Fix missing parameter in role creation from command line

This commit is contained in:
Lorenzo Milesi
2018-12-13 17:07:49 +01:00
committed by GitHub
parent 5de9e6470b
commit cd8999b2d5

View File

@ -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);
}