mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-25 17:46:52 +00:00
Restore support for current-user-principal property.
This commit is contained in:
parent
a8a81e343b
commit
f3ec8622e9
@ -897,7 +897,7 @@ EOQRY;
|
||||
* Return general server-related properties for this URL
|
||||
*/
|
||||
function ResourceProperty( $tag, $prop, &$reply, &$denied ) {
|
||||
global $c, $session;
|
||||
global $c, $session, $request;
|
||||
|
||||
// dbg_error_log( 'DAVResource', 'Processing "%s" on "%s".', $tag, $this->dav_name );
|
||||
|
||||
@ -1013,6 +1013,10 @@ EOQRY;
|
||||
$prop->NewElement('supported-report-set', $this->BuildSupportedReports( $reply ) );
|
||||
break;
|
||||
|
||||
case 'DAV::current-user-principal':
|
||||
$prop->NewElement('current-user-principal', $reply->href( $request->principal->principal_url ) );
|
||||
break;
|
||||
|
||||
case 'SOME-DENIED-PROPERTY': /** @todo indicating the style for future expansion */
|
||||
$denied[] = $reply->Tag($tag);
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user