Encryption is ready if master key is enabled

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/21929/head
Julius Härtl 6 years ago
parent 09e6b26bdd
commit fc1596fada
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 3
      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);
}

Loading…
Cancel
Save