From 8fcbf8263677a9522166201f9d844d4238fd590f Mon Sep 17 00:00:00 2001 From: anhefti Date: Tue, 30 Aug 2022 13:06:55 +0200 Subject: [PATCH] fixed open edx restriction detection --- .../lms/impl/edx/OpenEdxCourseRestriction.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/edx/OpenEdxCourseRestriction.java b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/edx/OpenEdxCourseRestriction.java index b6c16975..56050745 100644 --- a/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/edx/OpenEdxCourseRestriction.java +++ b/src/main/java/ch/ethz/seb/sebserver/webservice/servicelayer/lms/impl/edx/OpenEdxCourseRestriction.java @@ -103,6 +103,16 @@ public class OpenEdxCourseRestriction implements SEBRestrictionAPI { return LmsSetupTestResult.ofOkay(LmsType.OPEN_EDX); } + @Override + public boolean hasSEBClientRestriction(final Exam exam) { + final Result sebClientRestriction = getSEBClientRestriction(exam); + if (sebClientRestriction.hasError()) { + return false; + } + + return true; + } + @Override public Result getSEBClientRestriction(final Exam exam) {