Restore support for current-user-principal property.

This commit is contained in:
Andrew McMillan 2009-12-08 09:23:48 +13:00
parent a8a81e343b
commit f3ec8622e9

View File

@ -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;