diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-01-12 12:58:45 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2016-01-12 12:58:45 +0100 |
commit | 0d0377ebfb123e079822632ae4bc6855a11eb117 (patch) | |
tree | 21ff2bc0a4e69e2ab54cb389c71618eb162ecaf1 /settings | |
parent | c15cab7ed6bf2d3ce9009ca09c7c5f33b252860f (diff) | |
download | nextcloud-server-0d0377ebfb123e079822632ae4bc6855a11eb117.tar.gz nextcloud-server-0d0377ebfb123e079822632ae4bc6855a11eb117.zip |
Add a config option to enable certificate management
Diffstat (limited to 'settings')
-rw-r--r-- | settings/admin.php | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/settings/admin.php b/settings/admin.php index 7bd3760b6ce..7416e798a8f 100644 --- a/settings/admin.php +++ b/settings/admin.php @@ -158,12 +158,14 @@ $template->assign('OutdatedCacheWarning', $outdatedCaches); // add hardcoded forms from the template $forms = OC_App::getForms('admin'); -$certificatesTemplate = new OC_Template('settings', 'certificates'); -$certificatesTemplate->assign('type', 'admin'); -$certificatesTemplate->assign('uploadRoute', 'settings.Certificate.addSystemRootCertificate'); -$certificatesTemplate->assign('certs', $certificateManager->listCertificates()); -$certificatesTemplate->assign('urlGenerator', $urlGenerator); -$forms[] = $certificatesTemplate->fetchPage(); +if ($config->getSystemValue('enable_certificate_management', false)) { + $certificatesTemplate = new OC_Template('settings', 'certificates'); + $certificatesTemplate->assign('type', 'admin'); + $certificatesTemplate->assign('uploadRoute', 'settings.Certificate.addSystemRootCertificate'); + $certificatesTemplate->assign('certs', $certificateManager->listCertificates()); + $certificatesTemplate->assign('urlGenerator', $urlGenerator); + $forms[] = $certificatesTemplate->fetchPage(); +} $formsAndMore = array(); if ($request->getServerProtocol() !== 'https' || !OC_Util::isAnnotationsWorking() || |