Skip to content

Commit

Permalink
fix: image get 권한 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchef1 committed May 20, 2024
1 parent 84e2d06 commit c7b6624
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {

//경로별 인가 작업
.authorizeHttpRequests((auth) -> auth
.requestMatchers("/signup", "/login", "/checkUserName/{username}").permitAll()
.requestMatchers(HttpMethod.GET, "/post", "/post/random", "/post/{title}", "/image/{fileName}").hasAnyRole("GUEST", "ACTIVE", "ADMIN")
.requestMatchers("/signup", "/login", "/checkUserName/{username}", "/image/{fileName}").permitAll()
.requestMatchers(HttpMethod.GET, "/post", "/post/random", "/post/{title}").hasAnyRole("GUEST", "ACTIVE", "ADMIN")
.requestMatchers("/post", "/post/upload", "/post/{title}").hasAnyRole("ACTIVE", "ADMIN")
.requestMatchers("/admin", "/admin/{id}").hasRole("ADMIN"))

Expand Down

0 comments on commit c7b6624

Please sign in to comment.