Skip to content

Commit

Permalink
update :: user list authority authenticated
Browse files Browse the repository at this point in the history
  • Loading branch information
KimTaeO committed Mar 7, 2024
1 parent fa0166f commit 8c89beb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ class SecurityConfig(
.antMatchers(HttpMethod.GET, "/user/role").authenticated()
.antMatchers(HttpMethod.PATCH, "/user/profile").authenticated()
.antMatchers(HttpMethod.PATCH, "/user/password").authenticated()
.antMatchers(HttpMethod.GET, "/user/user-list").authenticated()
.antMatchers(HttpMethod.PATCH, "/user/accept-teacher").hasRole("ADMIN")
.antMatchers(HttpMethod.GET, "/user/pending").hasRole("ADMIN")
.antMatchers(HttpMethod.PATCH, "/user/accept-student").hasRole("ADMIN")
.antMatchers(HttpMethod.PATCH, "/user/accept-user/{id}").hasRole("ADMIN")
.antMatchers(HttpMethod.GET, "/user/user-list").hasRole("ADMIN")
.antMatchers(HttpMethod.DELETE, "/user/reject/{id}").hasRole("ADMIN")

//image
Expand Down

0 comments on commit 8c89beb

Please sign in to comment.