Skip to content

Commit b29ec1f

Browse files
frano-mclaude
andcommitted
chore: disable duos access request option for anvil datasets (#4855)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3950183 commit b29ec1f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • app/components/Detail/components/AnVILCMG/components/RequestAccess

app/components/Detail/components/AnVILCMG/components/RequestAccess/utils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ import {
77
} from "../../../../../../apis/azul/common/utils";
88
import { takeArrayValueAt } from "../../../../../../viewModelBuilders/azul/anvil-cmg/common/viewModelBuilders";
99

10+
// DUOS access requests temporarily disabled; flip to true to re-enable.
11+
const DUOS_ENABLED = false;
12+
1013
/**
1114
* Generates a list of request access menu options based on the provided dataset response.
1215
* This function extracts identifiers (DUOS ID and dbGaP ID) from the datasets response and returns an array of menu option objects.
@@ -32,7 +35,7 @@ export function getRequestAccessOptions(
3235
LABEL.EMPTY
3336
);
3437
const options = [];
35-
if (duosId) {
38+
if (DUOS_ENABLED && duosId) {
3639
// If a DUOS ID is present, add a menu option for DUOS.
3740
options.push({
3841
href: `https://duos.org/dataset/${duosId}`,

0 commit comments

Comments
 (0)