Merge pull request #21929 from nextcloud/bugfix/noid/encryption-transfer-user

Encryption is ready if master key is enabled
This commit is contained in:
Morris Jobke 2020-07-21 13:42:26 +02:00 committed by GitHub
commit 24889128cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}