diff --git a/VERSION.txt b/VERSION.txt index 258f4326222e..77b6d45eba63 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.1.62 \ No newline at end of file +5.1.63 \ No newline at end of file diff --git a/app/Http/Middleware/ApiSecretCheck.php b/app/Http/Middleware/ApiSecretCheck.php index 7e2aaac96f56..06cca298af3e 100644 --- a/app/Http/Middleware/ApiSecretCheck.php +++ b/app/Http/Middleware/ApiSecretCheck.php @@ -11,6 +11,7 @@ namespace App\Http\Middleware; +use App\Utils\Ninja; use Closure; use Illuminate\Http\Request; use stdClass; @@ -26,7 +27,7 @@ class ApiSecretCheck */ public function handle($request, Closure $next) { - if (! config('ninja.api_secret')) { + if (! config('ninja.api_secret') || Ninja::isHosted()) { return $next($request); } diff --git a/config/ninja.php b/config/ninja.php index 2147204f6d0e..d8cf7f563232 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -14,8 +14,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => '5.1.62', - 'app_tag' => '5.1.62-release', + 'app_version' => '5.1.63', + 'app_tag' => '5.1.63-release', 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', ''),