From c4b76a00ba6daf0fab24250a9b547eef1f7a855f Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 Jan 2024 22:58:50 +1100 Subject: [PATCH] v5.8.17 --- VERSION.txt | 2 +- app/Http/ValidationRules/Company/ValidCompanyQuantity.php | 2 +- config/ninja.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index 77c57b8949a1..7111a6f69029 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -5.8.17 \ No newline at end of file +5.8.18 \ No newline at end of file diff --git a/app/Http/ValidationRules/Company/ValidCompanyQuantity.php b/app/Http/ValidationRules/Company/ValidCompanyQuantity.php index 75796f03eb97..80211e99ce42 100644 --- a/app/Http/ValidationRules/Company/ValidCompanyQuantity.php +++ b/app/Http/ValidationRules/Company/ValidCompanyQuantity.php @@ -34,7 +34,7 @@ class ValidCompanyQuantity implements Rule return auth()->user()->company()->account->companies->count() < 10; } - return auth()->user()->account->isPaid() && auth()->user()->company()->account->companies->count() < 10 ; + return (auth()->user()->account->isPaid() || auth()->user()->account->isTrial()) && auth()->user()->company()->account->companies->count() < 10 ; } /** diff --git a/config/ninja.php b/config/ninja.php index a8fcf14f140e..d24a549bd556 100644 --- a/config/ninja.php +++ b/config/ninja.php @@ -17,8 +17,8 @@ return [ 'require_https' => env('REQUIRE_HTTPS', true), 'app_url' => rtrim(env('APP_URL', ''), '/'), 'app_domain' => env('APP_DOMAIN', 'invoicing.co'), - 'app_version' => env('APP_VERSION', '5.8.17'), - 'app_tag' => env('APP_TAG', '5.8.17'), + 'app_version' => env('APP_VERSION', '5.8.18'), + 'app_tag' => env('APP_TAG', '5.8.18'), 'minimum_client_version' => '5.0.16', 'terms_version' => '1.0.1', 'api_secret' => env('API_SECRET', false),