diff --git a/libs/common/src/vault/services/cipher.service.ts b/libs/common/src/vault/services/cipher.service.ts index 595f73a0431..25c48c1d835 100644 --- a/libs/common/src/vault/services/cipher.service.ts +++ b/libs/common/src/vault/services/cipher.service.ts @@ -321,8 +321,8 @@ export class CipherService implements CipherServiceAbstraction { if ( // prevent unprivileged users from migrating to cipher key encryption - (model.viewPassword || originalCipher?.key) && - (await this.getCipherKeyEncryptionEnabled()) + (model.viewPassword && (await this.getCipherKeyEncryptionEnabled())) || + originalCipher?.key ) { cipher.key = originalCipher?.key ?? null; const userOrOrgKey = await this.getKeyForCipherKeyDecryption(cipher, userId);