Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: hide guests group when searching for principals
Follow-up for #52914

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Jun 17, 2025
commit 8b66f3518e0034bf31803b468ea49549bf843c8a
4 changes: 4 additions & 0 deletions apps/dav/lib/DAV/GroupPrincipalBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ public function searchPrincipals($prefixPath, array $searchProperties, $test = '
$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) {
Expand Down