From 50427beba643bd8d5e2e58f73ba3fcdf43948a3d Mon Sep 17 00:00:00 2001 From: Jason Ng Date: Thu, 29 Jan 2026 17:10:37 -0500 Subject: [PATCH] [PM-29951] add archive flag check to vault-v3 desktop (#18660) * add archive flag check to vault-v3 desktop, sync vault-v2 and vault-v3 --- apps/desktop/src/vault/app/vault-v3/vault.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/src/vault/app/vault-v3/vault.component.ts b/apps/desktop/src/vault/app/vault-v3/vault.component.ts index 698c442dd8f..e3b4493ec7d 100644 --- a/apps/desktop/src/vault/app/vault-v3/vault.component.ts +++ b/apps/desktop/src/vault/app/vault-v3/vault.component.ts @@ -564,7 +564,7 @@ export class VaultComponent implements OnInit, OnDestroy, CopyClickListener { } } - if (!cipher.organizationId && !cipher.isDeleted && !cipher.isArchived) { + if (userCanArchive && !cipher.isDeleted && !cipher.isArchived) { menu.push({ label: this.i18nService.t("archiveVerb"), click: async () => { @@ -579,7 +579,7 @@ export class VaultComponent implements OnInit, OnDestroy, CopyClickListener { }); } - if (cipher.isArchived) { + if (cipher.isArchived && !cipher.isDeleted) { menu.push({ label: this.i18nService.t("unArchive"), click: async () => {