[PM29951] add archive flag check to desktop vault-v2 (#18056)

This commit is contained in:
Jason Ng 2025-12-29 10:11:12 -05:00 committed by GitHub
parent 4e1cca132d
commit e2a1cfcbe8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -565,7 +565,7 @@ export class VaultV2Component<C extends CipherViewLike>
}
}
if (!cipher.organizationId && !cipher.isDeleted && !cipher.isArchived) {
if (userCanArchive && !cipher.isDeleted && !cipher.isArchived) {
menu.push({
label: this.i18nService.t("archiveVerb"),
click: async () => {