summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-07-02 09:47:42 +0200
committerJoas Schilling <coding@schilljs.com>2021-07-02 09:47:42 +0200
commitaf03f5d516f43a6b34c66b57f4a00659caf8ccb3 (patch)
tree6e39f28228f31759acb01417922bf9e168ce136b /lib/private/Collaboration
parent129214e430865836dad57b271f49e63412d5c842 (diff)
downloadnextcloud-server-af03f5d516f43a6b34c66b57f4a00659caf8ccb3.tar.gz
nextcloud-server-af03f5d516f43a6b34c66b57f4a00659caf8ccb3.zip
Also hide group from direct matches
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Collaborators/GroupPlugin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Collaborators/GroupPlugin.php b/lib/private/Collaboration/Collaborators/GroupPlugin.php
index dbe3b7293d9..75e52c19e0b 100644
--- a/lib/private/Collaboration/Collaborators/GroupPlugin.php
+++ b/lib/private/Collaboration/Collaborators/GroupPlugin.php
@@ -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' => [