fix: hide guests group from overall principals

Follow-up for #52914 and #53369

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
This commit is contained in:
Jyrki Gadinger 2025-07-30 19:57:16 +02:00 committed by backportbot[bot]
parent 42ee1f26fe
commit 78495daaae

View file

@ -212,6 +212,9 @@ class Principal implements BackendInterface {
if ($this->hasGroups || $needGroups) {
$userGroups = $this->groupManager->getUserGroups($user);
foreach ($userGroups as $userGroup) {
if ($userGroup->hideFromCollaboration()) {
continue;
}
$groups[] = 'principals/groups/' . urlencode($userGroup->getGID());
}
}