diff --git a/Events.php b/Events.php index 3ad4d12a..8634640e 100644 --- a/Events.php +++ b/Events.php @@ -45,7 +45,7 @@ public static function onTopMenuInit($event) $module = Yii::$app->getModule('tasks'); - if (!(int)$module->settings->get('showGlobalMenuItem', 1) || Yii::$app->user->isGuest) { + if (!$module->settings->get('showGlobalMenuItem', false) || Yii::$app->user->isGuest) { return; } diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 142399ba..9d7b1363 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -4,6 +4,7 @@ Changelog 1.8.5 (Unreleased) ------------------------- - Fix #249: Fix replaced method `friendship\Module::isEnabled()` +- Enh #229: Disable main navigation by default 1.8.4 (December 21, 2023) ------------------------- diff --git a/models/SnippetModuleSettings.php b/models/SnippetModuleSettings.php index 5a783189..5f55698f 100644 --- a/models/SnippetModuleSettings.php +++ b/models/SnippetModuleSettings.php @@ -39,7 +39,7 @@ class SnippetModuleSettings extends Model /** * @var int defines if the global task menu item should be displayed */ - public $showGlobalMenuItem = 1; + public $showGlobalMenuItem = false; public $menuSortOrder = 500; /**