Merge pull request #54173 from nextcloud/backport/54167/stable30

This commit is contained in:
John Molakvoæ 2025-08-01 10:44:13 +02:00 committed by GitHub
commit 26a41b3f46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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