mirror of
https://github.com/bitwarden/browser
synced 2025-01-28 20:19:49 +01:00
PS-1798 - ensure admin users can edit ciphers (#4025)
This commit is contained in:
parent
7dae65daee
commit
af2e03bdf8
@ -96,8 +96,11 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||
}
|
||||
const response = await this.apiService.getCipherAdmin(this.cipherId);
|
||||
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user