From 1716b83d843a39c0f684ff3d0512af55e68712b5 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 24 Aug 2020 10:29:29 +0200 Subject: Fixes regression that prevented you from toggling the encryption flag Signed-off-by: Georg Ehrke --- lib/Settings/WhoHasAccessSettings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/Settings/WhoHasAccessSettings.php b/lib/Settings/WhoHasAccessSettings.php index 6f1173d..ad65b3e 100644 --- a/lib/Settings/WhoHasAccessSettings.php +++ b/lib/Settings/WhoHasAccessSettings.php @@ -72,8 +72,8 @@ class WhoHasAccessSettings implements ISettings { } $this->initialStateService->provideInitialState('privacy', 'privacyPolicyUrl', $privacyPolicyUrl); - $this->initialStateService->provideInitialState('privacy', 'fullDiskEncryptionEnabled', $this->config->getAppValue('privacy', 'fullDiskEncryptionEnabled', '0')); - $this->initialStateService->provideInitialState('privacy', 'serverSideEncryptionEnabled', $this->encryptionManager->isEnabled() ? '1' : '0'); + $this->initialStateService->provideInitialState('privacy', 'fullDiskEncryptionEnabled', $this->config->getAppValue('privacy', 'fullDiskEncryptionEnabled', '0') === '1'); + $this->initialStateService->provideInitialState('privacy', 'serverSideEncryptionEnabled', $this->encryptionManager->isEnabled()); return new TemplateResponse('privacy', 'who-has-access'); } -- cgit v1.2.3