Merge pull request #54167 from nextcloud/bug/noid/principal-guest_app-not-found-pt2

fix: hide guests group from overall principals
pull/54177/head
Daniel 2025-07-31 14:38:24 +07:00 committed by GitHub
commit bcfb010e07
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

@ -186,6 +186,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());
}
}