Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/privacy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2020-08-24 11:29:29 +0300
committerGeorg Ehrke <developer@georgehrke.com>2020-08-24 11:49:21 +0300
commit1716b83d843a39c0f684ff3d0512af55e68712b5 (patch)
tree7b55ad38747014016746e90db8c2ada589cc9f6d
parent845360c6f63a082e6e489f4f91f7e7442763591e (diff)
Fixes regression that prevented you from toggling the encryption flag
Signed-off-by: Georg Ehrke <developer@georgehrke.com>
-rw-r--r--lib/Settings/WhoHasAccessSettings.php4
-rw-r--r--src/components/Encryption.vue4
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: {
/**