diff options
author | Georg Ehrke <developer@georgehrke.com> | 2020-08-24 11:29:29 +0300 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2020-08-24 11:49:21 +0300 |
commit | 1716b83d843a39c0f684ff3d0512af55e68712b5 (patch) | |
tree | 7b55ad38747014016746e90db8c2ada589cc9f6d /lib | |
parent | 845360c6f63a082e6e489f4f91f7e7442763591e (diff) |
Fixes regression that prevented you from toggling the encryption flag
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Settings/WhoHasAccessSettings.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); } |