mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Handle group shares of addressbooks on v1 as well ... now FINALLY ....
This commit is contained in:
parent
a7e7f5e180
commit
89cd6e228d
1 changed files with 2 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue