fix: 마이페이지 403 버그 해결 (#162)#163
Merged
Hidden character warning
The head ref may contain hidden characters: "Bug/#162-\ub9c8\uc774\ud398\uc774\uc9c0-403-\ubc84\uadf8-\ud574\uacb0"
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes a 403 on “마이페이지” endpoints by restoring the missing global authorization role mapping in SecurityConfig after the earlier “회원 → 학생” role refactor.
Changes:
- Updates the default (
anyRequest) access rule from legacy roles (회원,팀장,팀원) to the currentMemberRoleType-aligned roles (학생,관리자,교수,직원,외부멘토). - Removes
팀장/팀원from the global rule since they areTeamMemberRoleTypeand not part of JWT/Spring Security authorities.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
sjmoon00
approved these changes
Jun 24, 2026
JJimini
approved these changes
Jun 24, 2026
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.
🔥 연관된 이슈
close: #162
📜 작업 내용
회원→학생role 일괄 변경)에서SecurityConfig의 전역 인가 규칙이 누락된 것이었습니다.@Secured("ROLE_회원")패턴은 일괄 치환에 걸렸지만,hasAnyRole("회원")은ROLE_접두어가 없어 빠졌습니다.팀장/팀원은TeamMemberRoleType이라 JWT 권한에 포함되지 않아 제거했습니다.💬 리뷰 요구사항
✨ 기타