mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Make the logic around readonly collections clearer.
This commit is contained in:
parent
77fbca07ec
commit
5014e45e22
@ -4,8 +4,8 @@
|
|||||||
*
|
*
|
||||||
* @package davical
|
* @package davical
|
||||||
* @subpackage caldav
|
* @subpackage caldav
|
||||||
* @author Andrew McMillan <andrew@catalyst.net.nz>
|
* @author Andrew McMillan <andrew@mcmillan.net.nz>
|
||||||
* @copyright Catalyst .Net Ltd
|
* @copyright Catalyst .Net Ltd, Morphoss Ltd
|
||||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
||||||
*/
|
*/
|
||||||
dbg_error_log("PUT", "method handler");
|
dbg_error_log("PUT", "method handler");
|
||||||
@ -29,7 +29,7 @@ $lock_opener = $request->FailIfLocked();
|
|||||||
|
|
||||||
|
|
||||||
if ( $request->IsCollection() ) {
|
if ( $request->IsCollection() ) {
|
||||||
if ( isset($c->readonly_webdav_collections) && $c->readonly_webdav_collections ) {
|
if ( !isset($c->readonly_webdav_collections) || $c->readonly_webdav_collections == true ) {
|
||||||
$request->DoResponse( 405 ); // Method not allowed
|
$request->DoResponse( 405 ); // Method not allowed
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user