summaryrefslogtreecommitdiffstats
path: root/lib/private/Settings
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-16 18:11:59 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-08-16 18:11:59 +0200
commitf76b64d3d7e5803008e0dbc29fdf1bcf29f0811e (patch)
treef6c4a6247e5b414158040e5e71bcd2a871976c11 /lib/private/Settings
parent58530ab42f7b089351dcd931de1f2f048ff4b23b (diff)
downloadnextcloud-server-f76b64d3d7e5803008e0dbc29fdf1bcf29f0811e.tar.gz
nextcloud-server-f76b64d3d7e5803008e0dbc29fdf1bcf29f0811e.zip
add missing encryption modules to settings
Diffstat (limited to 'lib/private/Settings')
-rw-r--r--lib/private/Settings/Admin/Encryption.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Settings/Admin/Encryption.php b/lib/private/Settings/Admin/Encryption.php
index 69c6bd17f03..6e93407f1a3 100644
--- a/lib/private/Settings/Admin/Encryption.php
+++ b/lib/private/Settings/Admin/Encryption.php
@@ -48,11 +48,24 @@ class Encryption implements ISettings {
* @return TemplateResponse
*/
public function getForm() {
+ $encryptionModules = $this->manager->getEncryptionModules();
+ $defaultEncryptionModuleId = $this->manager->getDefaultEncryptionModuleId();
+ $encryptionModuleList = [];
+ foreach ($encryptionModules as $module) {
+ $encryptionModuleList[$module['id']]['displayName'] = $module['displayName'];
+ $encryptionModuleList[$module['id']]['default'] = false;
+ if ($module['id'] === $defaultEncryptionModuleId) {
+ $encryptionModuleList[$module['id']]['default'] = true;
+ }
+ }
+
$parameters = [
// Encryption API
'encryptionEnabled' => $this->manager->isEnabled(),
'encryptionReady' => $this->manager->isReady(),
'externalBackendsEnabled' => count($this->userManager->getBackends()) > 1,
+ // Modules
+ 'encryptionModules' => $encryptionModuleList,
];
return new TemplateResponse('settings', 'admin/encryption', $parameters, '');