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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-21 10:16:43 +0300
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-07-21 14:44:58 +0300
commitba55e0ad535393e072bf4865c1dda19ba7c19ad4 (patch)
treea19654deab3caeed5f30d3166015111060db73f4 /apps/encryption
parent0a90eeb62cf746261412ac6dd7cd7b046bd1cf71 (diff)
Encryption is ready if master key is enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/lib/Crypto/Encryption.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php
index 39dfece7629..7f7a3c9ea20 100644
--- a/apps/encryption/lib/Crypto/Encryption.php
+++ b/apps/encryption/lib/Crypto/Encryption.php
@@ -580,6 +580,9 @@ class Encryption implements IEncryptionModule {
* @since 9.1.0
*/
public function isReadyForUser($user) {
+ if ($this->util->isMasterKeyEnabled()) {
+ return true;
+ }
return $this->keyManager->userHasKeys($user);
}