Skip to content
Permalink
Browse files

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

  • Loading branch information...
danpoltawski committed Jan 22, 2013
2 parents c9ae6d3 + 3b461a0 commit 68a6d8768488bd52988c3832b9f3af776de50bcf
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/completionlib.php
@@ -1088,7 +1088,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);
}
/**
@@ -1105,7 +1105,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";

0 comments on commit 68a6d87

Please sign in to comment.
You can’t perform that action at this time.