mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
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:
commit
289f75def4
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user