profile editor role

This commit is contained in:
andrey
2021-08-12 13:57:00 +03:00
parent 86c3146761
commit 3dc11f8075
6 changed files with 61 additions and 13 deletions

View File

@ -72,7 +72,10 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'status',
'value' => $model->status0->name,
],
'salary',
[
'attribute' => 'salary',
'visible' => Yii::$app->user->can('confidential_information')
],
[
'attribute' => 'position_id',
'value' => (isset($model->position->name)) ? $model->position->name : 'Без должности',