]> source.dussan.org Git - nextcloud-server.git/commitdiff
Default value of lookupServerEnabled should be the same everywhere 19998/head
authorGeorg Ehrke <developer@georgehrke.com>
Tue, 17 Mar 2020 09:39:59 +0000 (10:39 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Tue, 17 Mar 2020 14:07:39 +0000 (14:07 +0000)
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
apps/federatedfilesharing/lib/FederatedShareProvider.php
apps/federatedfilesharing/tests/FederatedShareProviderTest.php

index cf5ee133ea6292bd0dfd3cc39a56b33b6b64477b..575e3cdff5702a29cc9d9fb666942b6c176229f6 100644 (file)
@@ -1046,7 +1046,7 @@ class FederatedShareProvider implements IShareProvider {
                if ($this->gsConfig->isGlobalScaleEnabled()) {
                        return true;
                }
-               $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no');
+               $result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes');
                return ($result === 'yes');
        }
 
index a92426b0bef72600c2832895797cd7c4dc67e714..c8acdd3df53d73f5045218031c70df0f64de980f 100644 (file)
@@ -778,7 +778,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
                $this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
                        ->willReturn($gsEnabled);
                $this->config->expects($this->any())->method('getAppValue')
-                       ->with('files_sharing', 'lookupServerEnabled', 'no')
+                       ->with('files_sharing', 'lookupServerEnabled', 'yes')
                        ->willReturn($isEnabled);
 
                $this->assertSame($expected,