Skip to content

Commit 3712caa

Browse files
fixup! fix: automatically disable sab
Signed-off-by: SebastianKrupinski <[email protected]>
1 parent c290cc6 commit 3712caa

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

apps/dav/lib/Migration/DisableSystemAddressBook.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,9 @@ public function getName() {
3939
* @inheritdoc
4040
*/
4141
public function run(IOutput $output) {
42-
$output->info('Running repair step to disable system address book');
43-
if ($this->serverVersion->getMajorVersion() !== 32) {
44-
$output->info('Skipping repair step system address book this only applies to Nextcloud 32');
45-
return;
46-
}
47-
// If the system address book is not exposed there is nothing to do
48-
if ($this->appConfig->getAppValueBool('system_addressbook_exposed', true) === false) {
49-
$output->info('Skipping repair step system address book is already disabled');
42+
// If the system address book exposure was previously set skip the repair step
43+
if ($this->appConfig->hasAppKey('system_addressbook_exposed') === true) {
44+
$output->info('Skipping repair step system address book exposed was previously set');
5045
return;
5146
}
5247
// We use count seen because getting a user count from the backend can be very slow

0 commit comments

Comments
 (0)