Merge pull request #54174 from nextcloud/backport/54167/stable31

This commit is contained in:
Kate 2025-07-31 17:51:10 +02:00 committed by GitHub
commit 4151224c93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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