Commit d94188399770b0a424f9f66407c2ea9950baad2b
1 parent
351915e6
image size
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
backend/views/layouts/main-sidebar.php
@@ -17,6 +17,7 @@ use yii\widgets\Menu; | @@ -17,6 +17,7 @@ use yii\widgets\Menu; | ||
17 | 'label' => 'eCommerce', | 17 | 'label' => 'eCommerce', |
18 | 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>', | 18 | 'template'=>'<a href="{url}"> <i class="glyphicon glyphicon-barcode"></i> <span>{label}</span></a>', |
19 | 'url' => ['/product/manage'], | 19 | 'url' => ['/product/manage'], |
20 | + 'options' => ['class'=>\Yii::$app->user->can('product') && \Yii::$app->user->can('category') || \Yii::$app->user->can('brand') || \Yii::$app->user->can('rubrication') ? '' :'hide'], | ||
20 | 'items' => [ | 21 | 'items' => [ |
21 | [ | 22 | [ |
22 | 'label' => 'Товары', | 23 | 'label' => 'Товары', |