Skip to content

Commit 78495da

Browse files
nilsdingbackportbot[bot]
authored andcommitted
fix: hide guests group from overall principals
Follow-up for #52914 and #53369 Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
1 parent 42ee1f2 commit 78495da

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)