MDL-64898 core_completion: no progress for untracked users

This commit is contained in:
Dmitrii Metelkin
2019-03-15 14:32:50 +11:00
parent ec819146cc
commit 34945fa35f
2 changed files with 33 additions and 0 deletions
+4
View File
@@ -60,6 +60,10 @@ class progress {
return null;
}
if (!$completion->is_tracked_user($userid)) {
return null;
}
// Before we check how many modules have been completed see if the course has.
if ($completion->is_course_complete($userid)) {
return 100;