mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-27 19:31:01 -06:00
Fix for #1583
This commit is contained in:
parent
89cc01ce44
commit
56fdb57d24
@ -51,7 +51,7 @@ class CLIToken implements BinderInterface
|
||||
|
||||
foreach ($users as $user) {
|
||||
$accessToken = app('preferences')->getForUser($user, 'access_token', null);
|
||||
if ($accessToken->data === $value) {
|
||||
if(null !== $accessToken && $accessToken->data === $value) {
|
||||
Log::info(sprintf('Recognized user #%d (%s) from his acccess token.', $user->id, $user->email));
|
||||
|
||||
return $value;
|
||||
|
Loading…
Reference in New Issue
Block a user