diff --git a/setup/ajax.dataloader.php b/setup/ajax.dataloader.php index a2e2e149dd..c9036a55c0 100644 --- a/setup/ajax.dataloader.php +++ b/setup/ajax.dataloader.php @@ -147,7 +147,10 @@ function FatalErrorCatcher($sOutput) $sOperation = Utils::ReadParam('operation', ''); try { - if (!is_writable(utils::GetConfigFilePath())) throw new Exception('Setup operations are not allowed outside of the setup'); + if (is_file(utils::GetConfigFilePath()) && !is_writable(utils::GetConfigFilePath())) + { + throw new Exception('Setup operations are not allowed outside of the setup'); + } switch($sOperation) {