mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
MVC: config should be locked before calling checkAndThrowSafeDelete()
This commit is contained in:
parent
46eb2c0194
commit
c211858a08
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user