mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-13 22:54:25 +01:00
Fix for middleware
This commit is contained in:
parent
83ab8f0f60
commit
d771c1073c
@ -50,8 +50,6 @@ class StartupCheck
|
|||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
|
|
||||||
$company = Auth::user()->account->company;
|
|
||||||
|
|
||||||
// Check if a new version was installed
|
// Check if a new version was installed
|
||||||
if (! Utils::isNinja()) {
|
if (! Utils::isNinja()) {
|
||||||
$file = storage_path() . '/version.txt';
|
$file = storage_path() . '/version.txt';
|
||||||
@ -75,6 +73,7 @@ class StartupCheck
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (Auth::check()) {
|
if (Auth::check()) {
|
||||||
|
$company = Auth::user()->account->company;
|
||||||
$count = Session::get(SESSION_COUNTER, 0);
|
$count = Session::get(SESSION_COUNTER, 0);
|
||||||
Session::put(SESSION_COUNTER, ++$count);
|
Session::put(SESSION_COUNTER, ++$count);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user