Skip to content

Commit

Permalink
Merge pull request #1082 from zhx828/support-premium-api
Browse files Browse the repository at this point in the history
Allow premium user to access actionable variants and annotated variants
  • Loading branch information
zhx828 authored Feb 14, 2024
2 parents eba6335 + 09d573e commit 23f61f5
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@ public void configure(HttpSecurity http) throws Exception {
.antMatchers("/api/v1/utils/cancerGeneList").permitAll()
.antMatchers("/api/v1/utils/cancerGeneList.txt").permitAll()
.antMatchers("/api/v1/utils/cancerGeneList.json").permitAll()

.antMatchers("/api/v1/annotation/search").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
.antMatchers("/api/v1/utils/allActionableVariants").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
.antMatchers("/api/v1/utils/allActionableVariants.txt").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
.antMatchers("/api/v1/utils/allAnnotatedVariants").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)
.antMatchers("/api/v1/utils/allAnnotatedVariants.txt").hasAnyAuthority(AuthoritiesConstants.PREMIUM_USER, AuthoritiesConstants.ADMIN)

.antMatchers("/api/v1/**").hasAnyAuthority(AuthoritiesConstants.ADMIN)

.antMatchers("/api/account/reset-password/init").permitAll()
Expand Down

0 comments on commit 23f61f5

Please sign in to comment.