From af2e03bdf87a785be8d0477431efbbe060197377 Mon Sep 17 00:00:00 2001 From: dgoodman-bw <109169446+dgoodman-bw@users.noreply.github.com> Date: Fri, 11 Nov 2022 11:01:31 -0700 Subject: [PATCH] PS-1798 - ensure admin users can edit ciphers (#4025) --- apps/web/src/app/organizations/vault/add-edit.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/apps/web/src/app/organizations/vault/add-edit.component.ts b/apps/web/src/app/organizations/vault/add-edit.component.ts index f45ccc939f..e8138b1abc 100644 --- a/apps/web/src/app/organizations/vault/add-edit.component.ts +++ b/apps/web/src/app/organizations/vault/add-edit.component.ts @@ -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() {