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