mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
fix: hide guests group when searching for principals
Follow-up for https://github.com/nextcloud/server/pull/52914 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
452b672b7b
commit
8b66f3518e
1 changed files with 4 additions and 0 deletions
|
|
@ -188,6 +188,10 @@ class GroupPrincipalBackend implements BackendInterface {
|
|||
$groups = $this->groupManager->search($value, $searchLimit);
|
||||
|
||||
$results[] = array_reduce($groups, function (array $carry, IGroup $group) use ($restrictGroups) {
|
||||
if ($group->hideFromCollaboration()) {
|
||||
return $carry;
|
||||
}
|
||||
|
||||
$gid = $group->getGID();
|
||||
// is sharing restricted to groups only?
|
||||
if ($restrictGroups !== false) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue