Skip to content

Commit

Permalink
Allow for late summer assessments
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartlamour committed Nov 26, 2024
1 parent 26b5a1a commit da6e014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion block_my_feedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ public function is_course_current(stdClass $course): bool {
if ($course->enddate == 0) {
return true; // Enddate is set to 0 when no end date, show course.
}
if (time() > $course->enddate) {
$future = strtotime('+3 month'); // Allow for Late summer assessments.
if ($future > $course->enddate) {
return false; // After the end date.
}
}
Expand Down

0 comments on commit da6e014

Please sign in to comment.