Skip to content

Commit 4151224

Browse files
Merge pull request #54174 from nextcloud/backport/54167/stable31
2 parents 8309fa5 + 9f7d8ed commit 4151224

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
@@ -184,6 +184,9 @@ public function getGroupMembership($principal, $needGroups = false) {
184184
if ($this->hasGroups || $needGroups) {
185185
$userGroups = $this->groupManager->getUserGroups($user);
186186
foreach ($userGroups as $userGroup) {
187+
if ($userGroup->hideFromCollaboration()) {
188+
continue;
189+
}
187190
$groups[] = 'principals/groups/' . urlencode($userGroup->getGID());
188191
}
189192
}

0 commit comments

Comments
 (0)