1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-11 05:43:41 +00:00

[PM-15533] Remove isNotClone parameter from updateWithServer method (#12233)

This commit is contained in:
Shane Melton
2024-12-03 15:43:09 -08:00
committed by GitHub
parent f8c4b8afe8
commit a6c905cc1a
4 changed files with 6 additions and 12 deletions

View File

@@ -699,7 +699,6 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
protected saveCipher(cipher: Cipher) {
const isNotClone = this.editMode && !this.cloneMode;
let orgAdmin = this.organization?.canEditAllCiphers;
// if a cipher is unassigned we want to check if they are an admin or have permission to edit any collection
@@ -709,7 +708,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
return this.cipher.id == null
? this.cipherService.createWithServer(cipher, orgAdmin)
: this.cipherService.updateWithServer(cipher, orgAdmin, isNotClone);
: this.cipherService.updateWithServer(cipher, orgAdmin);
}
protected deleteCipher() {