mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-07-25 12:39:24 +00:00
Add a configuration option to deny WebDAV 'PUT' on a collection.
This commit is contained in:
parent
cbe90992b1
commit
1640c70b44
@ -29,6 +29,11 @@ $lock_opener = $request->FailIfLocked();
|
||||
|
||||
|
||||
if ( $is_collection ) {
|
||||
if ( isset($c->deny_put_collection) && $c->deny_put_collection ) {
|
||||
$request->DoResponse( 405 ); // Method not allowed
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* CalDAV does not define the result of a PUT on a collection. We treat that
|
||||
* as an import. The code is in caldav-PUT-functions.php
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user