diff --git a/CHANGES.md b/CHANGES.md index daf4a5a..b7e3fa8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -9,10 +9,11 @@ Note - All hash comments refer to the issue number. Eg. #169 refers to https://g ### Added - Usage of github actions (#407). - The ability to show the description on the course page (#406). -- The ability to choose how to deliver the certificate (#401) +- The ability to choose how to deliver the certificate (#401). ### Fixed - Managers are now able to download their students' certificates (#412). +- Users being able to view the certificate before the required time set (#403). ## [3.8.5] - 2020-11-26 diff --git a/classes/certificate.php b/classes/certificate.php index 39168dd..c525ef2 100644 --- a/classes/certificate.php +++ b/classes/certificate.php @@ -227,7 +227,7 @@ class certificate { $totaltime = 0; } $delay = $log->$timefield - $lasthit; - if ($delay > ($CFG->sessiontimeout * 60)) { + if ($delay > $CFG->sessiontimeout) { // The difference between the last log and the current log is more than // the timeout Register session value so that we have found a session! $login = $log->$timefield;