mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
no key safety check for orgs
This commit is contained in:
parent
773c51901f
commit
2d612b07de
@ -134,6 +134,9 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
|
||||
if (key == null && cipher.organizationId != null) {
|
||||
key = await this.cryptoService.getOrgKey(cipher.organizationId);
|
||||
if (key == null) {
|
||||
throw new Error('Cannot encrypt cipher for organization. No key.');
|
||||
}
|
||||
}
|
||||
await Promise.all([
|
||||
this.encryptObjProperty(model, cipher, {
|
||||
|
Loading…
Reference in New Issue
Block a user