Skip to content

[Feat] - 관리자 공개 코스 삭제 권한 추가 (dev → main)#175

Closed
thingineeer wants to merge 1 commit intomainfrom
dev
Closed

[Feat] - 관리자 공개 코스 삭제 권한 추가 (dev → main)#175
thingineeer wants to merge 1 commit intomainfrom
dev

Conversation

@thingineeer
Copy link
Contributor

배포 내용

  • 관리자(userId 280) 공개 코스 삭제 권한 추가
  • PublicCourse 삭제 시 Record FK null 처리 + Scrap 삭제
  • 변경 파일 1개 (PublicCourseService.java), Repository 인터페이스 미수정

* revert: 관리자 삭제 권한 관련 변경사항 전체 롤백

- PublicCourseService: isAdmin 체크, 스크랩 삭제, Record FK null 처리 제거
- RecordRepository: nullifyPublicCourseIn 메서드 제거
- f8b4c26 상태로 원복

* feat: 관리자 공개 코스 삭제 권한 추가

- userId 280(관리자) 소유권 검증 우회
- EntityManager JPQL로 Record FK null 처리
- Scrap 삭제 후 PublicCourse 삭제 (FK 순서 보장)
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

Comments