From cbb4bd9005dc89cae63f231736b99dd3b0f7addd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20M=C3=BCller?= Date: Mon, 10 Dec 2018 19:55:59 +0100 Subject: [PATCH] Add sharing scope to enable addressbook sharing with customgroups --- apps/dav/lib/Connector/Sabre/Principal.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/Connector/Sabre/Principal.php b/apps/dav/lib/Connector/Sabre/Principal.php index 7d50cb4c4245..6bf60f4f7f02 100644 --- a/apps/dav/lib/Connector/Sabre/Principal.php +++ b/apps/dav/lib/Connector/Sabre/Principal.php @@ -3,6 +3,7 @@ * @author Bart Visscher * @author Jakob Sack * @author Jörn Friedrich Dreyer + * @author Julian Müller * @author Lukas Reschke * @author Morris Jobke * @author Thomas Müller @@ -145,7 +146,7 @@ public function getGroupMembership($principal, $needGroups = false) { } if ($this->hasGroups || $needGroups) { - $groups = $this->groupManager->getUserGroups($user); + $groups = $this->groupManager->getUserGroups($user, 'sharing'); $groups = \array_map(function ($group) { /** @var IGroup $group */ return 'principals/groups/' . $group->getGID();