Fix my logic

This commit is contained in:
Daniel_I_Am 2020-08-29 15:25:39 +02:00
parent 1733f2cbc9
commit dc01409fbc
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ class ApiAuthorization
public function handle($request, Closure $next)
{
// During debug mode disable this check
if (config('chaosapi.middleware-enabled')) return $next($request);
if (!config('chaosapi.middleware-enabled')) return $next($request);
// Get the Authorization header
$authHeader = $request->header('Authorization');

View File

@ -1,7 +1,7 @@
<?php
return [
'middleware-enabled' => env('APP_DEBUG', false),
'middleware-enabled' => !env('APP_DEBUG', false),
'cachetime' => 60
];