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

PS-1798 - ensure admin users can edit ciphers (#4025)

This commit is contained in:
dgoodman-bw
2022-11-11 11:01:31 -07:00
committed by GitHub
parent 7dae65daee
commit af2e03bdf8

View File

@@ -96,8 +96,11 @@ export class AddEditComponent extends BaseAddEditComponent {
} }
const response = await this.apiService.getCipherAdmin(this.cipherId); const response = await this.apiService.getCipherAdmin(this.cipherId);
const data = new CipherData(response); const data = new CipherData(response);
this.originalCipher = new Cipher(data);
return new Cipher(data); data.edit = true;
const cipher = new Cipher(data);
this.originalCipher = cipher;
return cipher;
} }
protected encryptCipher() { protected encryptCipher() {