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 from principal backend
Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Jul 2, 2025
commit 543c4d79624ca86d1b94eaaf139d4fa834a77858
8 changes: 5 additions & 3 deletions apps/dav/lib/DAV/GroupPrincipalBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public function getPrincipalsByPrefix($prefixPath) {
$principals = [];

if ($prefixPath === self::PRINCIPAL_PREFIX) {
foreach ($this->groupManager->search('') as $user) {
$principals[] = $this->groupToPrincipal($user);
foreach ($this->groupManager->search('') as $group) {
if (!$group->hideFromCollaboration()) {
$principals[] = $this->groupToPrincipal($group);
}
}
}

Expand All @@ -93,7 +95,7 @@ public function getPrincipalByPath($path) {
$name = urldecode($elements[2]);
$group = $this->groupManager->get($name);

if (!is_null($group)) {
if ($group !== null && !$group->hideFromCollaboration()) {
return $this->groupToPrincipal($group);
}

Expand Down