mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-13723 - Unbalanced brackets in get_users_by_capability in the groups bit.
This commit is contained in:
parent
692b631d9d
commit
36832e1a30
@ -4469,7 +4469,7 @@ function get_users_by_capability($context, $capability, $fields='', $sort='',
|
||||
$viewallgroupsusers = get_users_by_capability($context,
|
||||
'moodle/site:accessallgroups', 'u.id, u.id', '', '', '', '', $exceptions);
|
||||
$wherecond['groups'] = '('. $grouptest . ' OR ra.userid IN (' .
|
||||
implode(',', array_keys($viewallgroupsusers)) . ')))';
|
||||
implode(',', array_keys($viewallgroupsusers)) . '))';
|
||||
} else {
|
||||
$wherecond['groups'] = '(' . $grouptest .')';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user