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:
Vladimir Barinov 2023-08-14 01:04:44 +03:00 committed by GitHub
parent 011a88d3ce
commit fc531f4d16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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();