mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
set cipher form to partial edit for non edit permission (#14639)
This commit is contained in:
@@ -514,6 +514,9 @@ export class VaultV2Component implements OnInit, OnDestroy {
|
|||||||
this.cipherId = cipher.id;
|
this.cipherId = cipher.id;
|
||||||
this.cipher = cipher;
|
this.cipher = cipher;
|
||||||
await this.buildFormConfig("edit");
|
await this.buildFormConfig("edit");
|
||||||
|
if (!cipher.edit && this.config) {
|
||||||
|
this.config.mode = "partial-edit";
|
||||||
|
}
|
||||||
this.action = "edit";
|
this.action = "edit";
|
||||||
await this.go().catch(() => {});
|
await this.go().catch(() => {});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user