Skip to content

Commit

Permalink
Allow premium user to access actionable variants and annotated variants
Browse files Browse the repository at this point in the history
  • Loading branch information
zhx828 committed Feb 14, 2024
1 parent f67a10d commit 09d573e
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 09d573e

Please sign in to comment.