mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-02-18 04:13:38 +00:00
Add support for draft DAV:current-user-principal property.
This commit is contained in:
parent
640ca24213
commit
e1e5ccbdd8
@ -249,6 +249,9 @@ function add_general_properties( &$prop, &$not_found, &$denied, $record ) {
|
||||
if ( isset($prop_list['DAV::principal-collection-set']) ) {
|
||||
$prop->NewElement("principal-collection-set", new XMLElement('href', ConstructURL('/') ) );
|
||||
}
|
||||
if ( isset($prop_list['DAV::current-user-principal']) ) {
|
||||
$prop->NewElement("current-user-principal", $request->current_user_principal_xml);
|
||||
}
|
||||
|
||||
if ( isset($prop_list['DAV::acl']) ) {
|
||||
/**
|
||||
|
||||
@ -122,6 +122,9 @@ function calendar_to_xml( $properties, $item ) {
|
||||
case 'getcontenttype':
|
||||
$prop->NewElement($k, "text/calendar" );
|
||||
break;
|
||||
/*
|
||||
* I don't think this is correct. We should only list these properties against
|
||||
* the (relevant) collection, not against it's contents.
|
||||
case 'resourcetype':
|
||||
$prop->NewElement($k, new XMLElement($reply->Caldav("calendar"), false) );
|
||||
if ( $request->collection_type == 'in' ) {
|
||||
@ -134,6 +137,10 @@ function calendar_to_xml( $properties, $item ) {
|
||||
$prop->NewElement($k, new XMLElement($reply->Caldav("schedule-calendar"), false) );
|
||||
}
|
||||
break;
|
||||
*/
|
||||
case 'current-user-principal':
|
||||
$prop->NewElement("current-user-principal", $request->current_user_principal_xml);
|
||||
break;
|
||||
case 'displayname':
|
||||
$prop->NewElement($k, $displayname );
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user