mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Merge pull request #27964 from nextcloud/backport/27761/stable22
[stable22] Also hide group from direct matches
This commit is contained in:
commit
c04797dca0
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