chg: revert

pull/101/head
iglocska 2022-05-17 09:24:37 +02:00
parent 23c41008d4
commit 11c9900580
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 0 additions and 9 deletions

View File

@ -194,15 +194,6 @@ class AuditLogsTable extends AppTable
if (isset($authUser['authkey_id'])) { if (isset($authUser['authkey_id'])) {
$this->user['authkey_id'] = $authUser['authkey_id']; $this->user['authkey_id'] = $authUser['authkey_id'];
} }
} else {
$this->user['request_type'] = self::REQUEST_TYPE_CLI;
$currentUserId = Configure::read('CurrentUserId');
if (!empty($currentUserId)) {
$this->user['id'] = $currentUserId;
$userFromDb = $this->Users->find()->where(['id' => $currentUserId])->first();
$this->user['name'] = $userFromDb['name'];
$this->user['org_id'] = $userFromDb['org_id'];
}
} }
} }
return $this->user; return $this->user;