An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: trial users subscription page
Andras Bacsai171f6f460801
diff --git a/app/Livewire/Subscription/Index.php b/app/Livewire/Subscription/Index.phpindex c87f7d0b6c..1444187ac7 100644--- a/app/Livewire/Subscription/Index.php+++ b/app/Livewire/Subscription/Index.php@@ -15,7 +15,7 @@ class Index extends Componentif (!isCloud()) {return redirect(RouteServiceProvider::HOME);}- if (data_get(currentTeam(), 'subscription')) {+ if (data_get(currentTeam(), 'subscription') && isSubscriptionActive()) {return redirect()->route('subscription.show');}$this->settings = InstanceSettings::get();diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.phpindex 023a651072..baee4ce152 100644--- a/bootstrap/helpers/shared.php+++ b/bootstrap/helpers/shared.php@@ -282,7 +282,7 @@ function base_url(bool $withPort = true): stringfunction isSubscribed(){- return auth()->user()->currentTeam()->subscription()->exists() || auth()->user()->isInstanceAdmin();+ return isSubscriptionActive() || auth()->user()->isInstanceAdmin();}function isDev(): bool{