From 4ff0de2ada3491ffe36f9c251f1deac158575e70 Mon Sep 17 00:00:00 2001 From: hyeseong Date: Thu, 21 Nov 2024 10:35:40 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20=EC=8A=A4=ED=81=AC=EB=9E=A9=20?= =?UTF-8?q?=ED=8F=B4=EB=8D=94=20=EB=82=B4=20=EA=B2=80=EC=83=89=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inuappcenterportal/inuportal/config/SecurityConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java b/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java index e9459d9..509ae19 100644 --- a/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java +++ b/src/main/java/kr/inuappcenterportal/inuportal/config/SecurityConfig.java @@ -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