mirror of
https://github.com/bitwarden/clients.git
synced 2026-06-28 21:01:38 +08:00
set cipher form to partial edit for non edit permission (#14639)
This commit is contained in:
parent
1b756df749
commit
23d4f04b22
@ -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(() => {});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user