From dbb998de96dedfe1834a72b22c3ee1e77005e36b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 27 Apr 2016 13:45:46 +0000 Subject: [PATCH] also add "principal-address" (URL of vCard of principal), as on pricipal itself --- addressbook/inc/class.addressbook_groupdav.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 652554fb85..7b8715ad3b 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -1099,6 +1099,10 @@ class addressbook_groupdav extends Api\CalDAV\Handler $data['props']['addressbook-home-set'] = Api\CalDAV::mkprop(Api\CalDAV::CARDDAV, 'addressbook-home-set', array( Api\CalDAV::mkprop('href',$data['caldav']->base_uri.'/'.$GLOBALS['egw_info']['user']['account_lid'].'/'))); + $data['props']['principal-address'] = Api\CalDAV::mkprop(Api\CalDAV::CARDDAV, 'principal-address', + $GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'] ? '' : array( + Api\CalDAV::mkprop('href',$data['caldav']->base_uri.'/addressbook-accounts/'.$GLOBALS['egw_info']['user']['person_id'].'.vcf'))); + $data['props']['directory-gateway'] = Api\CalDAV::mkprop(Api\CalDAV::CARDDAV, 'directory-gateway', array( Api\CalDAV::mkprop('href',$data['caldav']->base_uri.'/addressbook/'))); }