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