mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-11-29 08:56:03 +00:00
With readonly_webdav_collections set we should write nothing!
We were writing collection records to the database when the configuration setting readonly_webdav_collections was set, even though the actual events would not be written.
This commit is contained in:
1 parent
31f8c6b17f
commit
03ff39fa33
2 files changed
+8
No files matched your search
@@ -126,6 +126,7 @@ class Tools {
|
||||
if ( check_string($ics) ) {
|
||||
$path = "/".substr($file,0,-4).$path_ics;
|
||||
dbg_error_log( "importFromDirectory", "importing to $path");
|
||||
$c->readonly_webdav_collections = false; // Override this setting so we can create collections/events on import.
|
||||
require_once("caldav-PUT-functions.php");
|
||||
if ( $user = getUserByName(substr($file,0,-4),'importFromDirectory',__LINE__,__FILE__)) {
|
||||
$user_no = $user->user_no;
|
||||
|
||||
Reference in new issue
Block a user