Commit 351915e6f6cc9d1c101785726d24094c3a3457f4

Authored by Administrator
1 parent 1aebc681

image size

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
backend/views/layouts/main-sidebar.php
@@ -129,6 +129,7 @@ use yii\widgets\Menu; @@ -129,6 +129,7 @@ use yii\widgets\Menu;
129 [ 129 [
130 'label' => 'Настройка ролей', 130 'label' => 'Настройка ролей',
131 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-search"></i> <span>{label}</span></a>', 131 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-search"></i> <span>{label}</span></a>',
  132 + 'options' => ['class'=>\Yii::$app->user->can('user') && \Yii::$app->user->can('user') || \Yii::$app->user->can('permit') ? '' :'hide'],
132 'items' => [ 133 'items' => [
133 [ 134 [
134 'label' => 'Администраторы', 135 'label' => 'Администраторы',