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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user