mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Actually respect the user's wish not to check for updates #2919
This commit is contained in:
parent
017fa5a917
commit
975b78fc7b
@ -57,6 +57,15 @@ class VersionCheckEventHandler
|
||||
return;
|
||||
}
|
||||
|
||||
// should not check for updates:
|
||||
$permission = app('fireflyconfig')->get('permission_update_check', -1);
|
||||
$value = (int)$permission->data;
|
||||
if (1 !== $value) {
|
||||
Log::info('Update check is not enabled.');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
/** @var UserRepositoryInterface $repository */
|
||||
$repository = app(UserRepositoryInterface::class);
|
||||
/** @var User $user */
|
||||
|
Loading…
Reference in New Issue
Block a user