mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-27 02:54:27 +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']) ) {
|
if ( isset($prop_list['DAV::principal-collection-set']) ) {
|
||||||
$prop->NewElement("principal-collection-set", new XMLElement('href', ConstructURL('/') ) );
|
$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']) ) {
|
if ( isset($prop_list['DAV::acl']) ) {
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -122,6 +122,9 @@ function calendar_to_xml( $properties, $item ) {
|
|||||||
case 'getcontenttype':
|
case 'getcontenttype':
|
||||||
$prop->NewElement($k, "text/calendar" );
|
$prop->NewElement($k, "text/calendar" );
|
||||||
break;
|
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':
|
case 'resourcetype':
|
||||||
$prop->NewElement($k, new XMLElement($reply->Caldav("calendar"), false) );
|
$prop->NewElement($k, new XMLElement($reply->Caldav("calendar"), false) );
|
||||||
if ( $request->collection_type == 'in' ) {
|
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) );
|
$prop->NewElement($k, new XMLElement($reply->Caldav("schedule-calendar"), false) );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
*/
|
||||||
|
case 'current-user-principal':
|
||||||
|
$prop->NewElement("current-user-principal", $request->current_user_principal_xml);
|
||||||
|
break;
|
||||||
case 'displayname':
|
case 'displayname':
|
||||||
$prop->NewElement($k, $displayname );
|
$prop->NewElement($k, $displayname );
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user