mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
Merge branch 'MDL-63895-master' of git://github.com/vmdef/moodle
This commit is contained in:
commit
6f278d21b9
@ -1313,7 +1313,7 @@ function user_get_participants_sql($courseid, $groupid = 0, $accesssince = 0, $r
|
||||
// Default filter settings. We only show active by default, especially if the user has no capability to review enrolments.
|
||||
$onlyactive = true;
|
||||
$onlysuspended = false;
|
||||
if (has_capability('moodle/course:enrolreview', $context)) {
|
||||
if (has_capability('moodle/course:enrolreview', $context) && (has_capability('moodle/course:viewsuspendedusers', $context))) {
|
||||
switch ($statusid) {
|
||||
case ENROL_USER_ACTIVE:
|
||||
// Nothing to do here.
|
||||
|
Loading…
x
Reference in New Issue
Block a user