mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #27761 from nextcloud/bugfix/noid/also-hide-group-from-direct-match
Also hide group from direct matches
This commit is contained in:
commit
59f0fc0e2b
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue