Merge branch 'master' into 'master'

Fix current-user-principal

The RFC 5397 (http://tools.ietf.org/html/rfc5397) states that current-user-principal should return the principal URL for the current user, the one who is currently authenticated.

DAViCal answers with the principal URL for the owner of the resource right now, so this is a simple patch to fix this behaviour.

See merge request !9
This commit is contained in:
Florian 2014-12-15 22:22:01 +00:00
commit 289f75def4

View File

@ -1759,7 +1759,7 @@ EOQRY;
break;
case 'DAV::current-user-principal':
$prop->NewElement('current-user-principal', $reply->href( ConstructURL(DeconstructURL($request->principal->url())) ) );
$prop->NewElement('current-user-principal', $reply->href( ConstructURL(DeconstructURL($session->principal->url())) ) );
break;
case 'SOME-DENIED-PROPERTY': /** indicating the style for future expansion */