Merge pull request #20002 from nextcloud/backport/19995/stable16
[stable16] Default value of lookupServerEnabled should be the same everywhere
This commit is contained in:
commit
e641d6f1bd
|
@ -1043,7 +1043,7 @@ class FederatedShareProvider implements IShareProvider {
|
||||||
if ($this->gsConfig->isGlobalScaleEnabled()) {
|
if ($this->gsConfig->isGlobalScaleEnabled()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'no');
|
$result = $this->config->getAppValue('files_sharing', 'lookupServerEnabled', 'yes');
|
||||||
return ($result === 'yes');
|
return ($result === 'yes');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -777,7 +777,7 @@ class FederatedShareProviderTest extends \Test\TestCase {
|
||||||
$this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
|
$this->gsConfig->expects($this->once())->method('isGlobalScaleEnabled')
|
||||||
->willReturn($gsEnabled);
|
->willReturn($gsEnabled);
|
||||||
$this->config->expects($this->any())->method('getAppValue')
|
$this->config->expects($this->any())->method('getAppValue')
|
||||||
->with('files_sharing', 'lookupServerEnabled', 'no')
|
->with('files_sharing', 'lookupServerEnabled', 'yes')
|
||||||
->willReturn($isEnabled);
|
->willReturn($isEnabled);
|
||||||
|
|
||||||
$this->assertSame($expected,
|
$this->assertSame($expected,
|
||||||
|
|
Loading…
Reference in New Issue