SEBSERV-76 fixed

This commit is contained in:
anhefti 2019-08-07 14:15:57 +02:00
parent 47a0f37d9d
commit 0b1ed4c46c

View file

@ -175,6 +175,10 @@ public class ExamList implements TemplateComposer {
private PageAction modifyExam(final PageAction action, final EntityTable<Exam> table) {
final Exam exam = table.getSelectedROWData();
if (exam == null) {
throw new PageMessageException(EMPTY_SELECTION_TEXT_KEY);
}
if (exam.startTime != null) {
final DateTime now = DateTime.now(DateTimeZone.UTC);
if (exam.startTime.isBefore(now)) {