aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-07-14 13:07:00 +0200
committerGitHub <noreply@github.com>2021-07-14 13:07:00 +0200
commit59f0fc0e2b98350acf93d515859c53a39e6dbc73 (patch)
tree224a963cf5d2f3b9ec4572c7d97b3f2abe1622bb /lib
parent1366b35081f1d92429787696f4175c19a602858a (diff)
parentaf03f5d516f43a6b34c66b57f4a00659caf8ccb3 (diff)
downloadnextcloud-server-59f0fc0e2b98350acf93d515859c53a39e6dbc73.tar.gz
nextcloud-server-59f0fc0e2b98350acf93d515859c53a39e6dbc73.zip
Merge pull request #27761 from nextcloud/bugfix/noid/also-hide-group-from-direct-match
Also hide group from direct matches
Diffstat (limited to 'lib')
-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' => [