]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the correct principal for shared addressbooks 3598/head
authorJoas Schilling <coding@schilljs.com>
Thu, 23 Feb 2017 13:16:00 +0000 (14:16 +0100)
committerJoas Schilling <coding@schilljs.com>
Thu, 23 Feb 2017 13:16:00 +0000 (14:16 +0100)
Signed-off-by: Joas Schilling <coding@schilljs.com>
apps/dav/lib/CardDAV/CardDavBackend.php

index a6d057452e63f8d1b510d0ff9973e9039ee1b41d..b71c6380a91ef44601638bcad6cdfc7807e5186f 100644 (file)
@@ -180,7 +180,7 @@ class CardDavBackend implements BackendInterface, SyncSupport {
                                $addressBooks[$row['id']] = [
                                        'id'  => $row['id'],
                                        'uri' => $uri,
-                                       'principaluri' => $principalUri,
+                                       'principaluri' => $principalUriOriginal,
                                        '{DAV:}displayname' => $displayName,
                                        '{' . Plugin::NS_CARDDAV . '}addressbook-description' => $row['description'],
                                        '{http://calendarserver.org/ns/}getctag' => $row['synctoken'],