Skip to content

Commit

Permalink
[Fix] :: security config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lgwk42 committed May 8, 2024
1 parent 07cb58a commit 43b0333
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.requestMatchers("/swagger-ui/**", "/v3/**").permitAll()
.requestMatchers("/terms/**").permitAll()
.requestMatchers("/auth/**").permitAll()
.requestMatchers("/attendance/code").permitAll()
.requestMatchers(POST,"/attendance/code").permitAll()

.requestMatchers("/outing-admin/**").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers("/attendance/list").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers(GET,"/attendance/list").hasAnyAuthority(ADMIN,TEACHER)
.requestMatchers("/sleepover-admin/**").hasAnyAuthority(ADMIN,TEACHER)

.requestMatchers(POST,"/attendance").hasAuthority(USER)
.requestMatchers(POST,"/outing").hasAuthority(USER)
.requestMatchers(POST,"sleepover").hasAuthority(USER)
.requestMatchers(POST,"/sleepover").hasAuthority(USER)
.requestMatchers(PATCH,"/user/stdId").hasAuthority(USER)
.requestMatchers(PATCH,"/user/room").hasAuthority(USER)

Expand Down

0 comments on commit 43b0333

Please sign in to comment.