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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -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() {