Skip to content

Commit

Permalink
fix :: SecurityConfig fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgwk42 committed Jun 24, 2024
1 parent 3854fee commit 1ae0740
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,6 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http, CorsConfigurat
.requestMatchers(PATCH,"/user/stdId").hasAuthority(USER)
.requestMatchers(PATCH,"/user/room").hasAuthority(USER)

.requestMatchers("/school/**").hasAuthority(ADMIN)
.requestMatchers(GET,"/user-admin/await-user").hasAuthority(ADMIN)
.requestMatchers(PATCH,"/user-admin/approve").hasAuthority(ADMIN)
.requestMatchers(PATCH,"/user-admin/reject").hasAuthority(ADMIN)

.anyRequest().authenticated()
)
.addFilterAfter(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter.class)
Expand Down

0 comments on commit 1ae0740

Please sign in to comment.