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

fix: hide guests group from overall principals
This commit is contained in:
Daniel 2025-07-31 14:38:24 +02:00 committed by GitHub
commit bcfb010e07
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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());
}
}