From bf1df6ebf69c7d99147163ca504c3d03c176bf6b Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Tue, 31 Jan 2023 12:57:27 -0800 Subject: [PATCH] [EC-669] Hide Clone context menu item for items that belong to an organization (#4552) --- apps/desktop/src/app/vault/vault.component.ts | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/apps/desktop/src/app/vault/vault.component.ts b/apps/desktop/src/app/vault/vault.component.ts index 930e557a89..530e452882 100644 --- a/apps/desktop/src/app/vault/vault.component.ts +++ b/apps/desktop/src/app/vault/vault.component.ts @@ -274,13 +274,15 @@ export class VaultComponent implements OnInit, OnDestroy { this.editCipher(cipher); }), }); - menu.push({ - label: this.i18nService.t("clone"), - click: () => - this.functionWithChangeDetection(() => { - this.cloneCipher(cipher); - }), - }); + if (!cipher.organizationId) { + menu.push({ + label: this.i18nService.t("clone"), + click: () => + this.functionWithChangeDetection(() => { + this.cloneCipher(cipher); + }), + }); + } } switch (cipher.type) {