Skip to content

feat: allow leads to access core application admin APIs#316

Merged
CSE-Shaco merged 1 commit intoGDGoCINHA:developfrom
CSE-Shaco:develop
Mar 12, 2026
Merged

feat: allow leads to access core application admin APIs#316
CSE-Shaco merged 1 commit intoGDGoCINHA:developfrom
CSE-Shaco:develop

Conversation

@CSE-Shaco
Copy link
Copy Markdown
Contributor

@CSE-Shaco CSE-Shaco commented Mar 12, 2026

📌 연관된 이슈

ex) #이슈번호, #이슈번호

✨ 작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요

💬 리뷰 요구사항(선택)

Summary by CodeRabbit

릴리스 노트

  • 리팩토링
    • 리크루트 관리 기능의 접근 권한 규칙을 단순화했습니다. 여러 역할 조건을 하나의 규칙으로 통합하여 리드 역할 이상의 사용자만 관련 기능에 접근하도록 개선했습니다.

@CSE-Shaco CSE-Shaco merged commit 814f6f1 into GDGoCINHA:develop Mar 12, 2026
1 of 2 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 12, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 6956022c-7bde-4356-9a9f-8e9f1e16aeb9

📥 Commits

Reviewing files that changed from the base of the PR and between 938c396 and f718bfd.

📒 Files selected for processing (1)
  • src/main/java/inha/gdgoc/domain/admin/recruit/core/controller/RecruitCoreAdminController.java

Walkthrough

RecruitCoreAdminController의 접근 제어 규칙을 ORGANIZER_OR_HR_LEAD_RULE에서 LEAD_OR_HIGHER_RULE로 변경했습니다. LEAD 역할 이상만 필요하도록 단순화되었으며, list, detail, accept, reject 엔드포인트의 PreAuthorize 어노테이션이 업데이트되었습니다.

Changes

Cohort / File(s) Summary
Recruit Core Admin 접근 제어 규칙 변경
src/main/java/inha/gdgoc/domain/admin/recruit/core/controller/RecruitCoreAdminController.java
접근 제어 상수를 ORGANIZER_OR_HR_LEAD_RULE에서 LEAD_OR_HIGHER_RULE로 변경. ORGANIZER 및 HR 기반 확인을 제거하고 LEAD 역할만 필요하도록 단순화. 모든 관리자 엔드포인트(list, detail, accept, reject)의 PreAuthorize 어노테이션 업데이트.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • GDGoCINHA/24-2_GDGoC_Server#314 — 동일한 컨트롤러의 관리자 detail 엔드포인트를 수정하는 PR로, 이번 PR의 접근 규칙 변경과 연관됨.

Poem

🐰 접근 규칙을 간단히 정리하고,
LEAD만으로도 충분하게,
복잡한 조건들을 정리했네요,
우아한 코드의 변신이요! ✨

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant