From e6158fc093a4885d56c18c8f2dd92f7cb4bddec1 Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Sat, 2 Dec 2023 13:13:52 -0500 Subject: [PATCH] fix: revert to previous rendering logic --- .../access-dataset-menu/AccessDatasetMenu.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sections/dataset/dataset-action-buttons/access-dataset-menu/AccessDatasetMenu.tsx b/src/sections/dataset/dataset-action-buttons/access-dataset-menu/AccessDatasetMenu.tsx index 1295249e9..e1a587968 100644 --- a/src/sections/dataset/dataset-action-buttons/access-dataset-menu/AccessDatasetMenu.tsx +++ b/src/sections/dataset/dataset-action-buttons/access-dataset-menu/AccessDatasetMenu.tsx @@ -14,7 +14,8 @@ interface AccessDatasetMenuProps { export function AccessDatasetMenu({ version, permissions }: AccessDatasetMenuProps) { if ( !permissions.canDownloadFiles || - version.publishingStatus === DatasetPublishingStatus.DEACCESSIONED + (version.publishingStatus === DatasetPublishingStatus.DEACCESSIONED && + !permissions.canUpdateDataset) ) { return <> }