Skip to content

Commit

Permalink
SEBSP-183
Browse files Browse the repository at this point in the history
  • Loading branch information
anhefti committed Jan 6, 2025
1 parent 2a042db commit 4029569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public Result<String> getOneTimeTokenForTeacherAccount(
final AdHocAccountData adHocAccountData,
final boolean createIfNotExists) {

if (exam.status != Exam.ExamStatus.RUNNING && exam.status != Exam.ExamStatus.TEST_RUN) {
if (exam.status == Exam.ExamStatus.FINISHED || exam.status == Exam.ExamStatus.ARCHIVED) {
return Result.ofError(new IllegalStateException("Exam is not running"));
}

Expand Down

0 comments on commit 4029569

Please sign in to comment.