mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-59369 user: Add status column to the participants table
This commit is contained in:
parent
afa752eb12
commit
fb7929677a
3 changed files with 71 additions and 3 deletions
|
@ -1234,7 +1234,9 @@ function user_get_participants_sql($courseid, $groupid = 0, $accesssince = 0, $r
|
|||
|
||||
$isfrontpage = ($courseid == SITEID);
|
||||
|
||||
list($esql, $params) = get_enrolled_sql($context, null, $groupid, true);
|
||||
// Show active users only if the user doesn't have the 'moodle/course:enrolreview' capability.
|
||||
$onlyactive = !has_capability('moodle/course:enrolreview', $context);
|
||||
list($esql, $params) = get_enrolled_sql($context, null, $groupid, $onlyactive);
|
||||
|
||||
$joins = array('FROM {user} u');
|
||||
$wheres = array();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue