fix(security): 관리자 API 인증/권한 검증 누락 수정 - #87
Closed
lnu8926-web wants to merge 1 commit into
Closed
Conversation
- checkAdminAuth 공유 유틸 추가 (src/lib/auth/adminAuth.ts) - admin/users GET, admin/users/role PATCH, admin/projects GET에 관리자 인증 추가 - admin/invitations GET/POST에 관리자 인증 추가 - invitations POST에서 invited_by를 body 대신 세션에서 추출하도록 수정 - announcements의 중복 checkAdminFnc 제거 후 공유 유틸로 대체 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
checkAdminAuth공유 유틸 신규 생성 (src/lib/auth/adminAuth.ts)announcements/route.ts의 중복checkAdminFnc제거보안 수정 항목
admin/userscheckAdminAuth추가admin/users/rolecheckAdminAuth추가admin/projectscheckAdminAuth추가admin/invitationsinvited_by를 body에서 수신checkAdminAuth추가 + 세션에서 추출Test plan
/api/admin/usersGET → 401 응답 확인/api/admin/users/rolePATCH → 403 응답 확인Closes #78
🤖 Generated with Claude Code