summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-29 18:41:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-29 18:41:40 +0200
commitcd850dc325302e39749bf440d019bd7b43317496 (patch)
treed76622174a9f55d49867167de4d729e5815b7724 /apps
parentdd5bbc31f235b729983e60809841879d0ecaa133 (diff)
parent89cd6e228d18d59db7188508b2d677cb353ca2cb (diff)
downloadnextcloud-server-cd850dc325302e39749bf440d019bd7b43317496.tar.gz
nextcloud-server-cd850dc325302e39749bf440d019bd7b43317496.zip
Merge pull request #23568 from owncloud/finally-fix-23328-now-for-addressbooks-as-well
Handle group shares of addressbooks on v1 as well ... now FINALLY ....
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/carddav/carddavbackend.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/dav/lib/carddav/carddavbackend.php b/apps/dav/lib/carddav/carddavbackend.php
index 650623225e3..97f5706049a 100644
--- a/apps/dav/lib/carddav/carddavbackend.php
+++ b/apps/dav/lib/carddav/carddavbackend.php
@@ -99,6 +99,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
* @return array
*/
function getAddressBooksForUser($principalUri) {
+ $principalUriOriginal = $principalUri;
$principalUri = $this->convertPrincipal($principalUri, true);
$query = $this->db->getQueryBuilder();
$query->select(['id', 'uri', 'displayname', 'principaluri', 'description', 'synctoken'])
@@ -122,7 +123,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
$result->closeCursor();
// query for shared calendars
- $principals = $this->principalBackend->getGroupMembership($principalUri, true);
+ $principals = $this->principalBackend->getGroupMembership($principalUriOriginal, true);
$principals[]= $principalUri;
$query = $this->db->getQueryBuilder();