From fc531f4d16f6b8cbc716ccf1ad9a90476bff1876 Mon Sep 17 00:00:00 2001 From: Vladimir Barinov Date: Mon, 14 Aug 2023 01:04:44 +0300 Subject: [PATCH] =?UTF-8?q?Make=20DBEntity::save=20function=20work=20prope?= =?UTF-8?q?rly=20again=20=C2=A9=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since the introducing the Log feature for chandler engine, it broke non-authorized (through built-in mechanics) actions with database (for example, APIs). This commit disables the forced action logging to prevent errors appearing from nowhere and non-updated code --- chandler/Database/DBEntity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chandler/Database/DBEntity.php b/chandler/Database/DBEntity.php index 8b2d634..05d7069 100644 --- a/chandler/Database/DBEntity.php +++ b/chandler/Database/DBEntity.php @@ -100,7 +100,7 @@ abstract class DBEntity $this->getTable()->where("id", $this->record->id)->update(["deleted" => false]); } - function save(?bool $log = true): void + function save(?bool $log = false): void { if ($log) { $user_id = Authenticator::i()->getUser()->getId();