fixed open edx restriction detection

This commit is contained in:
anhefti 2022-08-30 13:06:55 +02:00
parent d648bcb167
commit 8fcbf82636

View file

@ -103,6 +103,16 @@ public class OpenEdxCourseRestriction implements SEBRestrictionAPI {
return LmsSetupTestResult.ofOkay(LmsType.OPEN_EDX);
}
@Override
public boolean hasSEBClientRestriction(final Exam exam) {
final Result<SEBRestriction> sebClientRestriction = getSEBClientRestriction(exam);
if (sebClientRestriction.hasError()) {
return false;
}
return true;
}
@Override
public Result<SEBRestriction> getSEBClientRestriction(final Exam exam) {