Conversation
[Merge] prod 머지
- userId 280(관리자)에 대해 공개 코스 삭제 시 소유자 검증 우회 - 비관리자 기존 동작 유지
thingineeer
added a commit
that referenced
this pull request
Feb 19, 2026
[Fix] - 공개 코스 삭제 시 FK 제약 위반 수정
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.
😶 무슨 이슈인가요?
closes #168
iOS 개발자 모드에서 타인의 공개 코스를 삭제하려 하면 서버에서 403 Forbidden이 반환되는 이슈가 있었습니다.
관리자(userId: 280)가 모든 공개 코스를 삭제할 수 있도록 권한 예외 처리가 필요. -> 개발자 모드 만들었어요
🤔 어떻게 이슈를 해결했나요?
PublicCourseService.deletePublicCourses()의 소유자 검증 로직에서 관리자 userId(280L)를 예외 처리boolean isAdmin = userId.equals(280L)플래그 추가 후, filter 조건에서 관리자일 경우 소유자 검증 우회🤯 주의할 점이 있나요?
딱히 업습니다~
PUT /api/public-course엔드포인트 그대로 사용