Merge pull request #3845 from nextcloud/backport/3528/stable23

[stable23] Add app config to toggle the default calendar setting as an admin
This commit is contained in:
Julius Härtl
2022-05-30 18:20:52 +02:00
committed by GitHub

View File

@@ -96,7 +96,8 @@ class ConfigService {
return false; 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) { if ($boardId === null) {
return $defaultState; return $defaultState;
} }