summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-02-28 10:03:32 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-02-28 10:03:32 (GMT)
commitd136daed4afd5e3e961cd28269c7b3981c33e9a9 (patch)
treed507d0dbb204620fbd9340d53d0633229a3a0df6
parentbb251d58147a4486b4824facac265e346303e043 (diff)
downloadiRony-d136daed4afd5e3e961cd28269c7b3981c33e9a9.tar.gz
Advertise principal email address to make iCal correctly handle event organizers and attendees
-rw-r--r--lib/Kolab/DAVACL/PrincipalBackend.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Kolab/DAVACL/PrincipalBackend.php b/lib/Kolab/DAVACL/PrincipalBackend.php
index 7297747..670eb5f 100644
--- a/lib/Kolab/DAVACL/PrincipalBackend.php
+++ b/lib/Kolab/DAVACL/PrincipalBackend.php
@@ -23,6 +23,7 @@
namespace Kolab\DAVACL;
+use \rcube;
use Sabre\DAV\Exception;
use Sabre\DAV\URLUtil;
use Kolab\DAV\Auth\HTTPBasic;
@@ -62,9 +63,12 @@ class PrincipalBackend implements \Sabre\DAVACL\PrincipalBackend\BackendInterfac
console(__METHOD__, HTTPBasic::$current_user);
if (HTTPBasic::$current_user) {
+ $user_email = rcube::get_instance()->get_user_email();
return array(
'uri' => 'principals/' . HTTPBasic::$current_user,
'{DAV:}displayname' => HTTPBasic::$current_user,
+ '{http://sabredav.org/ns}email-address' => $user_email,
+ '{http://calendarserver.org/ns/}email-address-set' => $user_email,
);
}