Browse Source

Also hide group from direct matches

Signed-off-by: Joas Schilling <coding@schilljs.com>
tags/v23.0.0beta1
Joas Schilling 2 years ago
parent
commit
af03f5d516
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/private/Collaboration/Collaborators/GroupPlugin.php

+ 1
- 1
lib/private/Collaboration/Collaborators/GroupPlugin.php View File

@@ -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' => [

Loading…
Cancel
Save