mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 21:24:13 -08:00
Fixed cranky Codacy result
This commit is contained in:
parent
7393f0bbea
commit
dbb2b62223
|
@ -16,10 +16,10 @@ class CheckForDebug
|
|||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
view()->share('debug_in_production', false);
|
||||
|
||||
if (((Auth::check() && (Auth::user()->isSuperUser()))) && (app()->environment()=='production') && (config('app.debug')===true)) {
|
||||
view()->share('debug_in_production', true);
|
||||
} else {
|
||||
view()->share('debug_in_production', false);
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
|
Loading…
Reference in a new issue