diff options
-rw-r--r-- | lib/Settings/WhoHasAccessSettings.php | 4 | ||||
-rw-r--r-- | src/components/Encryption.vue | 4 |
2 files changed, 4 insertions, 4 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'); } diff --git a/src/components/Encryption.vue b/src/components/Encryption.vue index c972657..bd80fc1 100644 --- a/src/components/Encryption.vue +++ b/src/components/Encryption.vue @@ -93,8 +93,8 @@ export default { * are enabled */ mounted() { - this.fullDiskEncryptionEnabled = loadState('privacy', 'fullDiskEncryptionEnabled') === 1 - this.serverSideEncryptionEnabled = loadState('privacy', 'serverSideEncryptionEnabled') === 1 + this.fullDiskEncryptionEnabled = loadState('privacy', 'fullDiskEncryptionEnabled') + this.serverSideEncryptionEnabled = loadState('privacy', 'serverSideEncryptionEnabled') }, methods: { /** |