diff --git a/backend/config/main.php b/backend/config/main.php index 61bd725..4fad469 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -72,7 +72,7 @@ return [ 'components' => [ 'request' => [ 'csrfParam' => '_csrf-backend', - 'baseUrl' => '', // /secure + 'baseUrl' => '/secure', 'parsers' => [ 'application/json' => 'yii\web\JsonParser', 'text/xml' => 'yii/web/XmlParser', diff --git a/backend/views/layouts/left.php b/backend/views/layouts/left.php index 1c0c0d7..fb09de7 100755 --- a/backend/views/layouts/left.php +++ b/backend/views/layouts/left.php @@ -38,7 +38,7 @@ ['label' => 'Менеджеры', 'icon' => 'user-circle-o', 'url' => ['/employee/manager'], 'active' => \Yii::$app->controller->id == 'manager'], ['label' => 'Работники', 'icon' => 'user', 'url' => ['/employee/manager-employee'], 'active' => \Yii::$app->controller->id == 'manager-employee'], ], -// 'visible' => Yii::$app->user->can('confidential_information') + 'visible' => Yii::$app->user->can('confidential_information') ], [ 'label' => 'Проекты', 'icon' => 'cubes', 'url' => ['#'], 'active' => \Yii::$app->controller->id == 'project', @@ -82,7 +82,7 @@ ['label' => 'Ответы пользователей', 'icon' => 'comments', 'url' => ['/questionnaire/user-response'], 'active' => \Yii::$app->controller->id == 'user-response'], ], -// 'visible' => Yii::$app->user->can('confidential_information') + 'visible' => Yii::$app->user->can('confidential_information') ], /*['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],