Skip to content

Commit

Permalink
refactor: 운영진 정보 조회 API 권한 변경 완료 (#654)
Browse files Browse the repository at this point in the history
  • Loading branch information
SongJaeHoonn authored Jan 10, 2025
1 parent 25c0599 commit 3945f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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<List<ExecutiveResponseDto>> retrieveExecutives() {
List<ExecutiveResponseDto> executives = retrieveExecutiveUseCase.retrieveExecutives();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3945f85

Please sign in to comment.