MVC: config should be locked before calling checkAndThrowSafeDelete()

This commit is contained in:
Stephan de Wit 2023-11-02 13:57:31 +01:00
parent 46eb2c0194
commit c211858a08

View File

@ -428,8 +428,8 @@ abstract class ApiMutableModelControllerBase extends ApiControllerBase
$result = array("result" => "failed");
if ($this->request->isPost()) {
$this->checkAndThrowSafeDelete($uuid);
Config::getInstance()->lock();
$this->checkAndThrowSafeDelete($uuid);
$mdl = $this->getModel();
if ($uuid != null) {
$tmp = $mdl;