1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 14:53:33 +00:00

PM-238 Master Reprompt Enabled Appears on Item in Organization (#5858)

* add-edit components and cipher service updated for organization item saveCiphers
* update cipher service spec file
This commit is contained in:
Jason Ng
2023-08-04 11:45:32 -04:00
committed by GitHub
parent 0bb76e2d06
commit 8613b83d98
5 changed files with 186 additions and 55 deletions

View File

@@ -600,9 +600,11 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
protected saveCipher(cipher: Cipher) {
const isNotClone = this.editMode && !this.cloneMode;
const orgAdmin = this.organization?.isAdmin;
return this.cipher.id == null
? this.cipherService.createWithServer(cipher)
: this.cipherService.updateWithServer(cipher);
? this.cipherService.createWithServer(cipher, orgAdmin)
: this.cipherService.updateWithServer(cipher, orgAdmin, isNotClone);
}
protected deleteCipher() {