Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: enable example contact feature by default
Signed-off-by: Richard Steinmetz <[email protected]>
  • Loading branch information
st3iny committed Jun 16, 2025
commit 84c2e2a5ce707a039259e10e312d4f59f60a52e4
2 changes: 1 addition & 1 deletion apps/dav/lib/Controller/ExampleContentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function getDefaultContact(): DataDownloadResponse {
}

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);
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Service/DefaultContactService.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public function __construct(
}

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;
}
Expand Down
2 changes: 1 addition & 1 deletion apps/dav/lib/Settings/ExampleContentSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getForm(): TemplateResponse {
}

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',
Expand Down