|
|
@@ -128,7 +128,7 @@ class GroupPlugin implements ISearchPlugin { |
|
|
|
// On page one we try if the search result has a direct hit on the |
|
|
|
// user id and if so, we add that to the exact match list |
|
|
|
$group = $this->groupManager->get($search); |
|
|
|
if ($group instanceof IGroup && (!$this->shareWithGroupOnly || in_array($group->getGID(), $userGroups))) { |
|
|
|
if ($group instanceof IGroup && !$group->hideFromCollaboration() && (!$this->shareWithGroupOnly || in_array($group->getGID(), $userGroups))) { |
|
|
|
$result['exact'][] = [ |
|
|
|
'label' => $group->getDisplayName(), |
|
|
|
'value' => [ |