mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 10:40:40 -04:00
Merge pull request #21936 from nextcloud/backport/21929/stable18
[stable18] Encryption is ready if master key is enabled
This commit is contained in:
commit
970a160ca7
1 changed files with 3 additions and 0 deletions
|
|
@ -588,6 +588,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…
Reference in a new issue