Skip to content

Commit

Permalink
add support to disable smart city module
Browse files Browse the repository at this point in the history
  • Loading branch information
proditis committed Sep 11, 2024
1 parent 5b6deb3 commit dfa5a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/views/layouts/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
],

[
'label' => '<i class="bi bi-buildings-fill"></i> SmartCity', 'url' => ['/smartcity/default/index'], 'visible' => !Yii::$app->user->isGuest, 'active' => Yii::$app->controller->module->id == 'smartcity',
'label' => '<i class="bi bi-buildings-fill"></i> SmartCity', 'url' => ['/smartcity/default/index'], 'visible' => !Yii::$app->user->isGuest && !Yii::$app->sys->module_smartcity_disabled, 'active' => Yii::$app->controller->module->id == 'smartcity',
'items' => [
['label' => 'Infrastructure', 'url' => ['/smartcity/infrastructure/index'], 'visible' => !Yii::$app->user->isGuest,],
['label' => 'Infrastructure Targets', 'url' => ['/smartcity/infrastructure-target/index'], 'visible' => !Yii::$app->user->isGuest,],
Expand Down

0 comments on commit dfa5a45

Please sign in to comment.