[#44] 매장 기능 도입 #45

Merged
pricelees merged 116 commits from feat/#44 into main 2025-09-20 03:15:06 +00:00
Showing only changes of commit f27ce7cd3a - Show all commits

View File

@ -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)
}