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 ....
This commit is contained in:
Thomas Müller 2016-03-29 18:41:40 +02:00
commit cd850dc325
1 changed files with 2 additions and 1 deletions

View File

@ -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();