Skip to content

Commit 26a41b3

Browse files
authored
Merge pull request #54173 from nextcloud/backport/54167/stable30
2 parents f108f77 + 78495da commit 26a41b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/dav/lib/Connector/Sabre/Principal.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,9 @@ public function getGroupMembership($principal, $needGroups = false) {
212212
if ($this->hasGroups || $needGroups) {
213213
$userGroups = $this->groupManager->getUserGroups($user);
214214
foreach ($userGroups as $userGroup) {
215+
if ($userGroup->hideFromCollaboration()) {
216+
continue;
217+
}
215218
$groups[] = 'principals/groups/' . urlencode($userGroup->getGID());
216219
}
217220
}

0 commit comments

Comments
 (0)