Skip to content

Commit

Permalink
Try reordering requestMatchers to prioritize /api/v2
Browse files Browse the repository at this point in the history
  • Loading branch information
ato committed Jul 12, 2023
1 parent fc16685 commit ac56b80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/bamboo/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.requestMatchers(antMatcher("/series/**")).permitAll()
.requestMatchers(antMatcher("/crawls/**")).permitAll()

.requestMatchers(antMatcher("/api/**")).hasRole(Role.PANADMIN.name())
.requestMatchers(antMatcher("/api/v2/**")).permitAll()
.requestMatchers(antMatcher("/api/**")).hasRole(Role.PANADMIN.name())

.anyRequest().hasRole(Role.PANADMIN.name()));
} else {
Expand Down

0 comments on commit ac56b80

Please sign in to comment.