mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Move response for supported-lock and supported-privilege-set into DAVResource.php
This commit is contained in:
parent
5e4bfe1053
commit
e742238e9a
@ -1105,6 +1105,21 @@ EOQRY;
|
||||
$prop->NewElement('supported-report-set', $this->BuildSupportedReports( $reply ) );
|
||||
break;
|
||||
|
||||
case 'DAV::supportedlock':
|
||||
$prop->NewElement('supportedlock',
|
||||
new XMLElement( 'lockentry',
|
||||
array(
|
||||
new XMLElement('lockscope', new XMLElement('exclusive')),
|
||||
new XMLElement('locktype', new XMLElement('write')),
|
||||
)
|
||||
)
|
||||
);
|
||||
break;
|
||||
|
||||
case 'DAV::supported-privilege-set':
|
||||
$prop->NewElement('supported-privilege-set', $request->BuildSupportedPrivileges($reply) );
|
||||
break;
|
||||
|
||||
case 'DAV::current-user-principal':
|
||||
$prop->NewElement('current-user-principal', $reply->href( $request->principal->principal_url ) );
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user