diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-07-14 13:07:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-14 13:07:00 +0200 |
commit | 59f0fc0e2b98350acf93d515859c53a39e6dbc73 (patch) | |
tree | 224a963cf5d2f3b9ec4572c7d97b3f2abe1622bb /lib | |
parent | 1366b35081f1d92429787696f4175c19a602858a (diff) | |
parent | af03f5d516f43a6b34c66b57f4a00659caf8ccb3 (diff) | |
download | nextcloud-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.php | 2 |
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' => [ |