Commit 562d5854 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan
Browse files

changed search so logged in user isn't included as it makes no sense to give...

changed search so logged in user isn't included as it makes no sense to give yourself access to a view
parent 684d7cb7
......@@ -40,7 +40,7 @@ $offset = param_integer('offset', 0);
switch ($type) {
case 'user':
$data = search_user($query, $limit, $offset);
$data = search_user($query, $limit, $offset, array('exclude' => $USER->get('id')));
break;
case 'group':
$data = search_group($query, $limit, $offset);
......
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