Fix get_course_time() allowing users to view certificate early (#403)
This commit is contained in:
parent
4881963650
commit
00e9eaba4d
2 changed files with 3 additions and 2 deletions
|
@ -9,10 +9,11 @@ Note - All hash comments refer to the issue number. Eg. #169 refers to https://g
|
||||||
### Added
|
### Added
|
||||||
- Usage of github actions (#407).
|
- Usage of github actions (#407).
|
||||||
- The ability to show the description on the course page (#406).
|
- 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
|
### Fixed
|
||||||
- Managers are now able to download their students' certificates (#412).
|
- 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
|
## [3.8.5] - 2020-11-26
|
||||||
|
|
||||||
|
|
|
@ -227,7 +227,7 @@ class certificate {
|
||||||
$totaltime = 0;
|
$totaltime = 0;
|
||||||
}
|
}
|
||||||
$delay = $log->$timefield - $lasthit;
|
$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 difference between the last log and the current log is more than
|
||||||
// the timeout Register session value so that we have found a session!
|
// the timeout Register session value so that we have found a session!
|
||||||
$login = $log->$timefield;
|
$login = $log->$timefield;
|
||||||
|
|
Loading…
Reference in a new issue