mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 01:50:33 -04:00
fix: enable example contact feature by default
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
b640c161ae
commit
84c2e2a5ce
3 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ class ExampleContentController extends ApiController {
|
|||
}
|
||||
|
||||
public function setDefaultContact(?string $contactData = null) {
|
||||
if (!$this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'no')) {
|
||||
if (!$this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'yes')) {
|
||||
return new JSONResponse([], Http::STATUS_FORBIDDEN);
|
||||
}
|
||||
$this->setCard($contactData);
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ class DefaultContactService {
|
|||
}
|
||||
|
||||
public function createDefaultContact(int $addressBookId): void {
|
||||
$enableDefaultContact = $this->config->getValueString(Application::APP_ID, 'enableDefaultContact', 'no');
|
||||
$enableDefaultContact = $this->config->getValueString(Application::APP_ID, 'enableDefaultContact', 'yes');
|
||||
if ($enableDefaultContact !== 'yes') {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ class ExampleContentSettings implements ISettings {
|
|||
}
|
||||
|
||||
if ($contactsEnabled) {
|
||||
$enableDefaultContact = $this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'no');
|
||||
$enableDefaultContact = $this->config->getAppValue(Application::APP_ID, 'enableDefaultContact', 'yes');
|
||||
$this->initialState->provideInitialState('enableDefaultContact', $enableDefaultContact);
|
||||
$this->initialState->provideInitialState(
|
||||
'hasCustomDefaultContact',
|
||||
|
|
|
|||
Loading…
Reference in a new issue