generated from pricelees/issue-pr-template
refactor: 예약 취소에서 관리자 타입 체크 기능 제거
This commit is contained in:
parent
aecf499ea5
commit
f27ce7cd3a
@ -164,7 +164,7 @@ class ReservationService(
|
||||
reservation: ReservationEntity,
|
||||
cancelReason: String
|
||||
) {
|
||||
if (user.type != PrincipalType.ADMIN && reservation.userId != user.id) {
|
||||
if (reservation.userId != user.id) {
|
||||
log.warn { "[ReservationService.createCanceledPayment] 예약자 본인 또는 관리자가 아닌 회원의 취소 요청: reservationId=${reservation.id}, userId=${user.id}" }
|
||||
throw ReservationException(ReservationErrorCode.NO_PERMISSION_TO_CANCEL_RESERVATION)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user