Skip to content
Snippets Groups Projects

Fix off by one in deadline

1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -219,7 +219,7 @@ public class AuthorisationService {
@@ -219,7 +219,7 @@ public class AuthorisationService {
JobOffer jobOffer = jobOfferService.findByIdOrThrow(offerId);
JobOffer jobOffer = jobOfferService.findByIdOrThrow(offerId);
return !applicationService.appExistsFor(getAuthPerson().getId(), offerId) &&
return !applicationService.appExistsFor(getAuthPerson().getId(), offerId) &&
!jobOffer.getHidden() &&
!jobOffer.getHidden() &&
(jobOffer.getDeadline() == null || jobOffer.getDeadline().isBefore(LocalDate.now()));
(jobOffer.getDeadline() == null || !jobOffer.getDeadline().isAfter(LocalDate.now()));
}
}
/**
/**
Loading