add role checking to controllers
This commit is contained in:
@@ -5,12 +5,10 @@ use yii\helpers\Html;
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\User */
|
||||
|
||||
$this->title = Yii::t('app', 'Update {modelClass}: ', [
|
||||
'modelClass' => 'User',
|
||||
]) . ' ' . $model->id;
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Users'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
|
||||
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
|
||||
$this->title = Yii::t('backend/user', 'Edit user' );
|
||||
$this->params['breadcrumbs'][] = ['label' => Yii::t('backend/user', 'Users'), 'url' => ['index']];
|
||||
$this->params['breadcrumbs'][] = ['label' => $model->username, 'url' => ['view', 'id' => $model->id]];
|
||||
$this->params['breadcrumbs'][] = Yii::t('backend/user', 'Update');
|
||||
?>
|
||||
<div class="user-update">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user