Skip to content
Browse files

Merge branch 'MDL-34228-m23' of git://github.com/sammarshallou/moodle…

… into MOODLE_23_STABLE
  • Loading branch information...
2 parents 48a8f1c + 5c3cb55 commit 9d53135aafefe27dd01bdb2514600536a289c6b1 @danpoltawski danpoltawski committed
Showing with 11 additions and 1 deletion.
  1. +1 −0 lang/en/role.php
  2. +2 −1 lib/completionlib.php
  3. +8 −0 lib/db/access.php
View
1 lang/en/role.php
@@ -121,6 +121,7 @@
$string['course:enrolconfig'] = 'Configure enrol instances in courses';
$string['course:enrolreview'] = 'Review course enrolments';
$string['course:ignorefilesizelimits'] = 'Use files larger than any file size restrictions';
+$string['course:isincompletionreports'] = 'Be shown on completion reports';
$string['course:manageactivities'] = 'Manage activities';
$string['course:managefiles'] = 'Manage files';
$string['course:managegrades'] = 'Manage grades';
View
3 lib/completionlib.php
@@ -1069,7 +1069,8 @@ public function get_tracked_users($where = '', $whereparams = array(), $groupid
global $DB;
list($enrolledsql, $params) = get_enrolled_sql(
- context_course::instance($this->course->id), '', $groupid, true);
+ context_course::instance($this->course->id),
+ 'moodle/course:isincompletionreports', $groupid, true);
$sql = 'SELECT u.id, u.firstname, u.lastname, u.idnumber';
if ($extracontext) {
View
8 lib/db/access.php
@@ -979,6 +979,14 @@
)
),
+ 'moodle/course:isincompletionreports' => array(
+ 'captype' => 'read',
+ 'contextlevel' => CONTEXT_COURSE,
+ 'archetypes' => array(
+ 'student' => CAP_ALLOW,
+ ),
+ ),
+
'moodle/course:viewscales' => array(
'captype' => 'read',

0 comments on commit 9d53135

Please sign in to comment.
Something went wrong with that request. Please try again.