Small fix

This commit is contained in:
James Cole 2022-05-31 05:27:47 +02:00
parent 099fc49c4b
commit 08f3f2aeb9
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -338,6 +338,12 @@ class UserEventHandler
Log::debug('Now in storeUserIPAddress');
$user = $event->user;
/** @var array $preference */
if($user->hasRole('demo')) {
Log::debug('Do not log demo user logins');
return;
}
try {
$preference = app('preferences')->getForUser($user, 'login_ip_history', [])->data;
} catch (FireflyException $e) {