From 2754afc0747950591b3ddca37248d363c6ab64f3 Mon Sep 17 00:00:00 2001 From: Björn Schießle Date: Wed, 18 Nov 2015 15:07:41 +0100 Subject: add option to auto add servers to the list of trusted servers once a federated share was created and accepted successfully --- apps/federation/settings/settings-admin.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/federation/settings') diff --git a/apps/federation/settings/settings-admin.php b/apps/federation/settings/settings-admin.php index c160b7ee825..76ae0c3b6e0 100644 --- a/apps/federation/settings/settings-admin.php +++ b/apps/federation/settings/settings-admin.php @@ -33,9 +33,11 @@ $trustedServers = new \OCA\Federation\TrustedServers( \OC::$server->getHTTPClientService(), \OC::$server->getLogger(), \OC::$server->getJobList(), - \OC::$server->getSecureRandom() + \OC::$server->getSecureRandom(), + \OC::$server->getConfig() ); $template->assign('trustedServers', $trustedServers->getServers()); +$template->assign('autoAddServers', $trustedServers->getAutoAddServers()); return $template->fetchPage(); -- cgit v1.2.3