diff --git a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyDetailValidator.java b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyDetailValidator.java index 2f0c4023b..e6a02f0f3 100644 --- a/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyDetailValidator.java +++ b/src/main/java/com/gdschongik/gdsc/domain/study/domain/StudyDetailValidator.java @@ -29,8 +29,12 @@ private void validateStudyMentorAuthorization(Member member, StudyDetail studyDe } } - private void validateDeadLine(LocalDateTime deadline, LocalDateTime curriculumStartDate) { - if (deadline.isBefore(curriculumStartDate)) { + private void validateDeadLine(LocalDateTime deadline, LocalDateTime studyStartDate) { + if (deadline.isBefore(LocalDateTime.now())) { + throw new CustomException(ASSIGNMENT_DEADLINE_INVALID); + } + + if (deadline.isBefore(studyStartDate)) { throw new CustomException(ASSIGNMENT_DEADLINE_INVALID); } }