From 9afd160e66f2c060cb7d77d414d0c1d13ac0c3ad Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 7 Apr 2017 11:42:33 +0200 Subject: allow to disable upload to lookup server, by default it is enabled Signed-off-by: Bjoern Schiessle --- settings/personal.php | 4 ++++ settings/templates/personal.php | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'settings') diff --git a/settings/personal.php b/settings/personal.php index a4449754f64..2c46a9f8dd2 100644 --- a/settings/personal.php +++ b/settings/personal.php @@ -186,6 +186,10 @@ $tmpl->assign('certs', $certificateManager->listCertificates()); $tmpl->assign('showCertificates', $enableCertImport); $tmpl->assign('urlGenerator', $urlGenerator); +$lookupServerUploadEnabled = $config->getAppValue('files_sharing', 'lookupServerUploadEnabled', 'yes'); +$lookupServerUploadEnabled = $lookupServerUploadEnabled === 'yes'; +$tmpl->assign('lookupServerUploadEnabled', $lookupServerUploadEnabled); + // Get array of group ids for this user $groups = \OC::$server->getGroupManager()->getUserIdGroups(OC_User::getUser()); $groups2 = array_map(function($group) { return $group->getGID(); }, $groups); diff --git a/settings/templates/personal.php b/settings/templates/personal.php index d94fbb33770..10df437523b 100644 --- a/settings/templates/personal.php +++ b/settings/templates/personal.php @@ -67,7 +67,9 @@