This commit is contained in:
andrey 2022-10-26 13:18:11 +03:00
parent ce4bbf07e2
commit 86c25c624f
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class SkillController extends Controller
'rules' => [
[
'allow' => true,
'roles' => ['admin'],
'roles' => ['admin', 'profileEditor'],
],
],
],

View File

@ -27,7 +27,7 @@
['label' => 'Должность', 'icon' => 'spotify', 'url' => ['/settings/position'], 'active' => \Yii::$app->controller->id == 'position'],
['label' => 'Навыки', 'icon' => 'flask', 'url' => ['/settings/skill'], 'active' => \Yii::$app->controller->id == 'skill'],
],
'visible' => Yii::$app->user->can('confidential_information')
//'visible' => Yii::$app->user->can('confidential_information')
],
[
'label' => 'Профили', 'icon' => 'address-book-o', 'url' => '#', 'active' => \Yii::$app->controller->id == 'user-card',