1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fix for middleware

This commit is contained in:
Hillel Coren 2017-08-27 23:16:22 +03:00
parent 83ab8f0f60
commit d771c1073c

View File

@ -50,8 +50,6 @@ class StartupCheck
return $next($request);
}
$company = Auth::user()->account->company;
// Check if a new version was installed
if (! Utils::isNinja()) {
$file = storage_path() . '/version.txt';
@ -75,6 +73,7 @@ class StartupCheck
}
if (Auth::check()) {
$company = Auth::user()->account->company;
$count = Session::get(SESSION_COUNTER, 0);
Session::put(SESSION_COUNTER, ++$count);