mirror of
https://github.com/openvk/chandler.git
synced 2025-01-22 15:24:15 +03:00
Make DBEntity::save function work properly again ©️
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
This commit is contained in:
parent
011a88d3ce
commit
fc531f4d16
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue