set cipher form to partial edit for non edit permission (#14639)

This commit is contained in:
Jordan Aasen 2025-05-09 17:51:34 -07:00 committed by GitHub
parent 1b756df749
commit 23d4f04b22
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -514,6 +514,9 @@ export class VaultV2Component implements OnInit, OnDestroy {
this.cipherId = cipher.id;
this.cipher = cipher;
await this.buildFormConfig("edit");
if (!cipher.edit && this.config) {
this.config.mode = "partial-edit";
}
this.action = "edit";
await this.go().catch(() => {});
}