Skip to content

Commit

Permalink
Fix WebSecurityConfig filter chain
Browse files Browse the repository at this point in the history
  • Loading branch information
rogargon committed Dec 18, 2023
1 parent 5176095 commit fd77569
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ protected SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exce
.requestMatchers(HttpMethod.POST, "/users/*").denyAll()
.requestMatchers(HttpMethod.POST,"/routes").hasRole(Role.USER.toString())
.requestMatchers(HttpMethod.POST,"/routes/*").denyAll()
.requestMatchers(HttpMethod.POST, "/**/*").authenticated()
.requestMatchers(HttpMethod.PUT,"/routeVersions/*").denyAll()
.requestMatchers(HttpMethod.PUT, "/**/*").authenticated()
.requestMatchers(HttpMethod.PATCH,"/routeVersions/*").denyAll()
.requestMatchers(HttpMethod.PATCH,"/routes/*").hasRole(Role.USER.toString())
.requestMatchers(HttpMethod.DELETE,"/routes/*").hasRole(Role.ADMIN.toString())
Expand Down

0 comments on commit fd77569

Please sign in to comment.