Skip to content

Commit

Permalink
[Refactor] 스크랩 폴더 내 검색 권한 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hen715 committed Nov 21, 2024
1 parent 673141c commit 4ff0de2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
.requestMatchers(HttpMethod.GET,"/api/posts/**","/api/posts","/api/cafeterias","/api/weathers").permitAll()
.requestMatchers("/api/posts/**","/api/posts","/api/fires/**").hasAnyRole("USER","ADMIN")
.requestMatchers("/api/replies/**").hasAnyRole("USER","ADMIN")
.requestMatchers("/api/search","/api/search/**","/api/notices","/api/notices/**","api/schedules","api/schedules/**").permitAll()
.requestMatchers("/api/folders/**","/api/folders").hasAnyRole("USER","ADMIN")
.requestMatchers("/api/search","/api/notices","/api/notices/**","api/schedules","api/schedules/**").permitAll()
.requestMatchers("/api/folders/**","/api/folders","/api/search/**").hasAnyRole("USER","ADMIN")
.requestMatchers(HttpMethod.GET,"/api/categories","/api/images/**").permitAll()
.requestMatchers("/api/images","/api/images/**","/api/categories").hasRole("ADMIN"));
httpSecurity
Expand Down

0 comments on commit 4ff0de2

Please sign in to comment.