Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-37473-23' of git://github.com/srynot4sale/moodle in…

…to MOODLE_23_STABLE
  • Loading branch information...
commit e21f9dd98239644c0ab95a7d8bed1f7efd060d5a 2 parents 72455fc + c208efa
@danpoltawski danpoltawski authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/completionlib.php
View
4 lib/completionlib.php
@@ -1021,7 +1021,7 @@ public function get_activities($modinfo=null) {
* @return bool
*/
public function is_tracked_user($userid) {
- return is_enrolled(context_course::instance($this->course->id), $userid, '', true);
+ return is_enrolled(context_course::instance($this->course->id), $userid, 'moodle/course:isincompletionreports', true);
}
/**
@@ -1038,7 +1038,7 @@ public function get_num_tracked_users($where = '', $whereparams = array(), $grou
global $DB;
list($enrolledsql, $enrolledparams) = get_enrolled_sql(
- context_course::instance($this->course->id), '', $groupid, true);
+ context_course::instance($this->course->id), 'moodle/course:isincompletionreports', $groupid, true);
$sql = 'SELECT COUNT(eu.id) FROM (' . $enrolledsql . ') eu JOIN {user} u ON u.id = eu.id';
if ($where) {
$sql .= " WHERE $where";
Please sign in to comment.
Something went wrong with that request. Please try again.