diff --git a/src/SidebarMenu.php b/src/SidebarMenu.php index 2a26a305..490f68e9 100644 --- a/src/SidebarMenu.php +++ b/src/SidebarMenu.php @@ -35,9 +35,10 @@ public function items() 'icon' => 'fa-database', ], 'hdomains' => [ - 'label' => Yii::t('app', 'Domains'), - 'url' => ['/hosting/hdomain/index'], - 'icon' => 'fa-globe', + 'label' => Yii::t('app', 'Domains'), + 'url' => ['/hosting/hdomain/index'], + 'icon' => 'fa-globe', + 'visible' => function () { return (bool)Yii::getAlias('@domain', false); }, ] ], ],