This commit is contained in:
Yuri Kuznetsov
2020-09-21 17:40:56 +03:00
parent e7b51ef61d
commit 53606cbde5

View File

@@ -61,8 +61,9 @@ class ApplicationUser
public function setupSystemUser()
{
$user = $this->entityManagerProxy->getEntity('User', 'system');
if (!$user) {
throw new Error("System user is not found");
throw new Error("System user is not found.");
}
$user->set('ipAddress', $_SERVER['REMOTE_ADDR'] ?? null);