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:
parent
83ab8f0f60
commit
d771c1073c
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user