Commit eb0347b9 authored by Nigel McNie's avatar Nigel McNie
Browse files

When assigning view access, allow users to assign access to any group, not...

When assigning view access, allow users to assign access to any group, not just the ones they're in.
parent 13dccf0a
......@@ -43,7 +43,7 @@ switch ($type) {
$data = search_user($query, $limit, $offset, array('exclude' => $USER->get('id')));
break;
case 'group':
$data = search_group($query, $limit, $offset);
$data = search_group($query, $limit, $offset, '');
$roles = get_records_array('grouptype_roles');
$data['roles'] = array();
foreach ($roles as $r) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment