@@ -83,41 +83,35 @@ const DownloadButtonGroups: React.FunctionComponent<{
83
83
buttonText = "Cancer Gene List"
84
84
/>
85
85
) : null }
86
- { props . authenticationStore . account ?. authorities . includes (
87
- USER_AUTHORITY . ROLE_PREMIUM_USER
88
- ) && (
89
- < >
90
- { props . data . hasAllActionableVariants && (
91
- < AuthDownloadButton
92
- className = { BUTTON_CLASS_NAME }
93
- fileName = { `all_actionable_variants_${ props . data . version } .tsv` }
94
- getDownloadData = { async ( ) => {
95
- const data = await oncokbClient . utilsAllActionableVariantsTxtGetUsingGET (
96
- {
97
- version : props . data . version ,
98
- }
99
- ) ;
100
- return data ;
101
- } }
102
- buttonText = "All Actionable Variants"
103
- />
104
- ) }
105
- { props . data . hasAllAnnotatedVariants && (
106
- < AuthDownloadButton
107
- className = { BUTTON_CLASS_NAME }
108
- fileName = { `all_annotated_variants_${ props . data . version } .tsv` }
109
- getDownloadData = { async ( ) => {
110
- const data = await oncokbClient . utilsAllAnnotatedVariantsTxtGetUsingGET (
111
- {
112
- version : props . data . version ,
113
- }
114
- ) ;
115
- return data ;
116
- } }
117
- buttonText = "All Annotated Variants"
118
- />
119
- ) }
120
- </ >
86
+ { props . data . hasAllActionableVariants && (
87
+ < AuthDownloadButton
88
+ className = { BUTTON_CLASS_NAME }
89
+ fileName = { `all_actionable_variants_${ props . data . version } .tsv` }
90
+ getDownloadData = { async ( ) => {
91
+ const data = await oncokbClient . utilsAllActionableVariantsTxtGetUsingGET (
92
+ {
93
+ version : props . data . version ,
94
+ }
95
+ ) ;
96
+ return data ;
97
+ } }
98
+ buttonText = "All Actionable Variants"
99
+ />
100
+ ) }
101
+ { props . data . hasAllAnnotatedVariants && (
102
+ < AuthDownloadButton
103
+ className = { BUTTON_CLASS_NAME }
104
+ fileName = { `all_annotated_variants_${ props . data . version } .tsv` }
105
+ getDownloadData = { async ( ) => {
106
+ const data = await oncokbClient . utilsAllAnnotatedVariantsTxtGetUsingGET (
107
+ {
108
+ version : props . data . version ,
109
+ }
110
+ ) ;
111
+ return data ;
112
+ } }
113
+ buttonText = "All Annotated Variants"
114
+ />
121
115
) }
122
116
{ props . data . hasSqlDump ? (
123
117
< >
@@ -288,9 +282,12 @@ export default class APIAccessPage extends React.Component<{
288
282
</ div >
289
283
</ div >
290
284
{ this . props . authenticationStore . account &&
291
- this . props . authenticationStore . account . authorities . includes (
285
+ ( this . props . authenticationStore . account . authorities . includes (
292
286
USER_AUTHORITY . ROLE_DATA_DOWNLOAD
293
- ) ? (
287
+ ) ||
288
+ this . props . authenticationStore . account . authorities . includes (
289
+ USER_AUTHORITY . ROLE_PREMIUM_USER
290
+ ) ) ? (
294
291
< >
295
292
< div className = { 'mb-3' } >
296
293
< h5 className = "title" > Data Download</ h5 >
0 commit comments