From 28c7706f709f345482498fb509e20e0a507d06be Mon Sep 17 00:00:00 2001 From: anhefti Date: Mon, 30 May 2022 10:41:37 +0200 Subject: [PATCH] do not test archived exams for LMS connection --- .../java/ch/ethz/seb/sebserver/gui/content/exam/ExamForm.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/ExamForm.java b/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/ExamForm.java index 05020439..50cb3915 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/ExamForm.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/content/exam/ExamForm.java @@ -596,7 +596,7 @@ public class ExamForm implements TemplateComposer { } private boolean testSEBRestrictionAPI(final Exam exam) { - if (!exam.isLmsAvailable()) { + if (!exam.isLmsAvailable() || exam.status == ExamStatus.ARCHIVED) { return false; }