Merge pull request #3528 from nextcloud/enh/calendar-global-setting

Add app config to toggle the default calendar setting as an admin
This commit is contained in:
Julius Härtl
2022-01-14 21:48:55 +01:00
committed by GitHub

View File

@@ -102,7 +102,8 @@ class ConfigService {
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;
}