From 3945f855642044ff9273a0e8b31d66ee799c3f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=9E=AC=ED=9B=88?= <128021502+SongJaeHoonn@users.noreply.github.com> Date: Fri, 10 Jan 2025 17:32:31 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=9A=B4=EC=98=81=EC=A7=84=20?= =?UTF-8?q?=EC=A0=95=EB=B3=B4=20=EC=A1=B0=ED=9A=8C=20API=20=EA=B6=8C?= =?UTF-8?q?=ED=95=9C=20=EB=B3=80=EA=B2=BD=20=EC=99=84=EB=A3=8C=20(#654)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../adapter/in/web/ExecutiveRetrievalController.java | 4 +--- .../java/page/clab/api/global/config/SecurityConstants.java | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/page/clab/api/domain/memberManagement/executive/adapter/in/web/ExecutiveRetrievalController.java b/src/main/java/page/clab/api/domain/memberManagement/executive/adapter/in/web/ExecutiveRetrievalController.java index 683c36bf5..a13fede83 100644 --- a/src/main/java/page/clab/api/domain/memberManagement/executive/adapter/in/web/ExecutiveRetrievalController.java +++ b/src/main/java/page/clab/api/domain/memberManagement/executive/adapter/in/web/ExecutiveRetrievalController.java @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.tags.Tag; import java.util.List; import lombok.RequiredArgsConstructor; -import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -20,8 +19,7 @@ public class ExecutiveRetrievalController { private final RetrieveExecutiveUseCase retrieveExecutiveUseCase; - @Operation(summary = "[G] 운영진 정보 조회", description = "ROLE_GUEST 이상의 권한이 필요함") - @PreAuthorize("hasRole('GUEST')") + @Operation(summary = "운영진 정보 조회", description = "ROLE_ANONYMOUS 이상의 권한이 필요함") @GetMapping("") public ApiResponse> retrieveExecutives() { List executives = retrieveExecutiveUseCase.retrieveExecutives(); diff --git a/src/main/java/page/clab/api/global/config/SecurityConstants.java b/src/main/java/page/clab/api/global/config/SecurityConstants.java index a98dcf50e..783f0baf3 100644 --- a/src/main/java/page/clab/api/global/config/SecurityConstants.java +++ b/src/main/java/page/clab/api/global/config/SecurityConstants.java @@ -26,7 +26,8 @@ public class SecurityConstants { "/api/v1/work-experiences", "/api/v1/work-experiences/**", "/api/v1/products", "/api/v1/products/**", "/api/v1/reviews", "/api/v1/reviews/**", - "/api/v1/activity-photos", "/api/v1/activity-photos/**" + "/api/v1/activity-photos", "/api/v1/activity-photos/**", + "/api/v1/executive" }; public static final String[] PERMIT_ALL_API_ENDPOINTS_POST = {