1
0
mirror of https://github.com/moodle/moodle.git synced 2025-05-06 00:06:51 +02:00

Merge branch 'MDL-27040' of git://github.com/timhunt/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-07-06 19:25:47 +02:00
commit babbab1449

@ -5007,10 +5007,14 @@ function get_users_by_capability($context, $capability, $fields = '', $sort = ''
if ($useviewallgroups) {
$viewallgroupsusers = get_users_by_capability($context, 'moodle/site:accessallgroups', 'u.id, u.id', '', '', '', '', $exceptions);
if (!empty($viewallgroupsusers)) {
$wherecond[] = "($grouptest OR u.id IN (" . implode(',', array_keys($viewallgroupsusers)) . '))';
} else {
$wherecond[] = "($grouptest)";
}
} else {
$wherecond[] = "($grouptest)";
}
}
/// User exceptions