Skip to content

Conversation

@CSE-Shaco
Copy link
Contributor

📌 연관된 이슈

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

✨ 작업 내용

Feat: 권한 검증 엔드포인트 추가 및 UserRole 기반 비교 로직 개선

💬 리뷰 요구사항(선택)

- AuthController에 /auth/{role} 엔드포인트 추가
  - 요청된 role과 토큰 내 사용자 권한을 비교하여 접근 가능 여부 판단
  - 상위 권한 사용자는 하위 권한 페이지 접근 허용, 그렇지 않으면 403 반환
- UserRole enum에 권한 순서 기반 비교 로직 추가 (ordinal 값 활용)
@coderabbitai
Copy link

coderabbitai bot commented Oct 22, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ 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.

@CSE-Shaco CSE-Shaco merged commit 42115a2 into GDGoCINHA:main Oct 22, 2025
2 checks passed
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