summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-24 17:11:07 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-24 17:11:07 +0100
commit89cd6e228d18d59db7188508b2d677cb353ca2cb (patch)
tree6ee4ca199243a59aff28eddb86b15272ff62f39e /apps/dav
parenta7e7f5e18098ff0f536e58a7e1e5dfdc825e9086 (diff)
downloadnextcloud-server-89cd6e228d18d59db7188508b2d677cb353ca2cb.tar.gz
nextcloud-server-89cd6e228d18d59db7188508b2d677cb353ca2cb.zip
Handle group shares of addressbooks on v1 as well ... now FINALLY ....
Diffstat (limited to 'apps/dav')
-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();