don't add server automatically to trusted server

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
pull/2178/head
Bjoern Schiessle 8 years ago
parent de983e61e3
commit 7df5c5db2d
No known key found for this signature in database
GPG Key ID: 2378A753E2BF04F6
  1. 2
      apps/federation/lib/TrustedServers.php
  2. 2
      apps/federation/tests/TrustedServersTest.php

@ -137,7 +137,7 @@ class TrustedServers {
* @return bool
*/
public function getAutoAddServers() {
$value = $this->config->getAppValue('federation', 'autoAddServers', '1');
$value = $this->config->getAppValue('federation', 'autoAddServers', '0');
return $value === '1';
}

@ -172,7 +172,7 @@ class TrustedServersTest extends TestCase {
*/
public function testGetAutoAddServers($status, $expected) {
$this->config->expects($this->once())->method('getAppValue')
->with('federation', 'autoAddServers', '1')->willReturn($status);
->with('federation', 'autoAddServers', '0')->willReturn($status);
$this->assertSame($expected,
$this->trustedServers->getAutoAddServers()

Loading…
Cancel
Save