Skip to content

Commit

Permalink
fixup! fix: automatically disable sab
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
  • Loading branch information
SebastianKrupinski committed Feb 12, 2025
1 parent 486e8f3 commit 9424b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/CardDAV/SyncService.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function getLocalSystemAddressBook() {
public function syncInstance(?\Closure $progressCallback = null) {

if ($this->config->getAppValue('dav', 'system_addressbook_exposed', 'yes') === 'yes') {
$limit = (int)$this->config->getAppValue('dav', 'system_addressbook_limit', 5000);
$limit = (int)$this->config->getAppValue('dav', 'system_addressbook_limit', '5000');
if ($this->userManager->countUsersTotal($limit) >= $limit) {
$this->config->setAppValue('dav', 'system_addressbook_exposed', 'no');
}
Expand Down

0 comments on commit 9424b41

Please sign in to comment.