aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJyrki Gadinger <nilsding@nilsding.org>2025-07-30 19:57:16 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-07-31 12:38:47 +0000
commit9f7d8edd4a7940d4998a80c30edde82747a6e8f0 (patch)
tree2437e335a450e4d3af54736b487011c03831ff92
parent8309fa5c2911ec2c4d4f70b981ea26d8c7717969 (diff)
downloadnextcloud-server-backport/54167/stable31.tar.gz
nextcloud-server-backport/54167/stable31.zip
fix: hide guests group from overall principalsbackport/54167/stable31
Follow-up for #52914 and #53369 Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
-rw-r--r--apps/dav/lib/Connector/Sabre/Principal.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php
index 515ef807a25..eb58f076de7 100644
--- a/apps/dav/lib/Connector/Sabre/Principal.php
+++ b/apps/dav/lib/Connector/Sabre/Principal.php
@@ -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());
}
}