Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

강의실 예약 제한 #312

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class ReservationServiceImpl(
val room =
roomRepository.findByIdOrNull(reserveRequest.roomId) ?: throw CserealException.Csereal404("Room Not Found")

if (room.type == RoomType.LECTURE && user.role != Role.ROLE_STAFF) {
throw CserealException.Csereal403("교수회의실 예약 행정실 문의 바람")
}

val reservations = mutableListOf<ReservationEntity>()

val recurrenceId = UUID.randomUUID()
Expand Down
Loading