mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
Make the logic around readonly collections clearer.
This commit is contained in:
1 parent
77fbca07ec
commit
5014e45e22
1 file changed
+3
-3
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user