mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-01-27 00:33:34 +00:00
Make the logic around readonly collections clearer.
This commit is contained in:
parent
77fbca07ec
commit
5014e45e22
@ -4,8 +4,8 @@
|
||||
*
|
||||
* @package davical
|
||||
* @subpackage caldav
|
||||
* @author Andrew McMillan <andrew@catalyst.net.nz>
|
||||
* @copyright Catalyst .Net Ltd
|
||||
* @author Andrew McMillan <andrew@mcmillan.net.nz>
|
||||
* @copyright Catalyst .Net Ltd, Morphoss Ltd
|
||||
* @license http://gnu.org/copyleft/gpl.html GNU GPL v2
|
||||
*/
|
||||
dbg_error_log("PUT", "method handler");
|
||||
@ -29,7 +29,7 @@ $lock_opener = $request->FailIfLocked();
|
||||
|
||||
|
||||
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
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user