Skip to content

Commit bcfb010

Browse files
authored
Merge pull request #54167 from nextcloud/bug/noid/principal-guest_app-not-found-pt2
fix: hide guests group from overall principals
2 parents 6033c25 + 45c8664 commit bcfb010

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
@@ -186,6 +186,9 @@ public function getGroupMembership($principal, $needGroups = false) {
186186
if ($this->hasGroups || $needGroups) {
187187
$userGroups = $this->groupManager->getUserGroups($user);
188188
foreach ($userGroups as $userGroup) {
189+
if ($userGroup->hideFromCollaboration()) {
190+
continue;
191+
}
189192
$groups[] = 'principals/groups/' . urlencode($userGroup->getGID());
190193
}
191194
}

0 commit comments

Comments
 (0)