diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index d7bae6390..2250dbf92 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -102,7 +102,8 @@ public function isCalendarEnabled(int $boardId = null): bool { return false; } - $defaultState = (bool)$this->config->getUserValue($this->getUserId(), Application::APP_ID, 'calendar', true); + $appConfigState = $this->config->getAppValue(Application::APP_ID, 'calendar', 'yes') === 'yes'; + $defaultState = (bool)$this->config->getUserValue($this->getUserId(), Application::APP_ID, 'calendar', $appConfigState); if ($boardId === null) { return $defaultState; }