Merge pull request #24532 from nextcloud/backport/24409/stable20
[stable20] Also run repair steps when encryption is disabled but a legacy key is present
This commit is contained in:
commit
ce953d1571
|
@ -58,7 +58,8 @@ class EncryptionLegacyCipher implements IRepairStep {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($this->manager->isEnabled()) {
|
||||
$masterKeyId = $this->config->getAppValue('encryption', 'masterKeyId');
|
||||
if ($this->manager->isEnabled() || !empty($masterKeyId)) {
|
||||
if ($this->config->getSystemValue('encryption.legacy_format_support', '') === '') {
|
||||
$this->config->setSystemValue('encryption.legacy_format_support', true);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,8 @@ class EncryptionMigration implements IRepairStep {
|
|||
return;
|
||||
}
|
||||
|
||||
if ($this->manager->isEnabled()) {
|
||||
$masterKeyId = $this->config->getAppValue('encryption', 'masterKeyId');
|
||||
if ($this->manager->isEnabled() || !empty($masterKeyId)) {
|
||||
if ($this->config->getSystemValue('encryption.key_storage_migrated', '') === '') {
|
||||
$this->config->setSystemValue('encryption.key_storage_migrated', false);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue