Skip to content

Commit

Permalink
SEBSERV-457 fixed exam consistency check to exclude SEB lock for Exam…
Browse files Browse the repository at this point in the history
… without LMS
  • Loading branch information
anhefti committed Dec 18, 2023
1 parent b4b5b6e commit 8484e2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public Result<Collection<APIMessage>> checkExamConsistency(final Long examId) {
.getOrThrow();

// check lms connection
if (!exam.isLmsAvailable()) {
if (exam.lmsSetupId != null && !exam.isLmsAvailable()) {
result.add(ErrorMessage.EXAM_CONSISTENCY_VALIDATION_LMS_CONNECTION.of(exam.getModelId()));
}

Expand All @@ -174,7 +174,7 @@ public Result<Collection<APIMessage>> checkExamConsistency(final Long examId) {
return null;
});

if (!this.sebRestrictionService.checkSebRestrictionSet(exam)) {
if (exam.lmsSetupId != null && !this.sebRestrictionService.checkSebRestrictionSet(exam)) {
result.add(
ErrorMessage.EXAM_CONSISTENCY_VALIDATION_SEB_RESTRICTION
.of(exam.getModelId()));
Expand Down

0 comments on commit 8484e2f

Please sign in to comment.