1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 08:43:33 +00:00

Only call postCipherAdmin if the orgId on a cipher is not null (#6209)

This commit is contained in:
Robyn MacCallum
2023-09-07 10:31:20 -04:00
committed by GitHub
parent 2d73f754bf
commit d172dfe2f6
2 changed files with 13 additions and 2 deletions

View File

@@ -525,7 +525,7 @@ export class CipherService implements CipherServiceAbstraction {
async createWithServer(cipher: Cipher, orgAdmin?: boolean): Promise<any> {
let response: CipherResponse;
if (orgAdmin) {
if (orgAdmin && cipher.organizationId != null) {
const request = new CipherCreateRequest(cipher);
response = await this.apiService.postCipherAdmin(request);
} else if (cipher.collectionIds != null) {