Skip to content

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.

fix: members cannot manage subscriptions

Andras Bacsai8fe658bacc26
diff --git a/app/Livewire/Subscription/Index.php b/app/Livewire/Subscription/Index.php
index 1444187ac7..6c1d8e66cb 100644
--- a/app/Livewire/Subscription/Index.php
+++ b/app/Livewire/Subscription/Index.php
@@ -15,6 +15,9 @@ class Index extends Component
if (!isCloud()) {
return redirect(RouteServiceProvider::HOME);
}
+ if (auth()->user()->isMember()) {
+ return redirect()->route('dashboard');
+ }
if (data_get(currentTeam(), 'subscription') && isSubscriptionActive()) {
return redirect()->route('subscription.show');
}
diff --git a/app/Livewire/Subscription/Show.php b/app/Livewire/Subscription/Show.php
index ad677ce530..413997464d 100644
--- a/app/Livewire/Subscription/Show.php
+++ b/app/Livewire/Subscription/Show.php
@@ -11,6 +11,9 @@ class Show extends Component
if (!isCloud()) {
return redirect()->route('dashboard');
}
+ if (auth()->user()->isMember()) {
+ return redirect()->route('dashboard');
+ }
if (!data_get(currentTeam(), 'subscription')) {
return redirect()->route('subscription.index');
}
diff --git a/config/sentry.php b/config/sentry.php
index 9561601c1f..a3fbc0a3a2 100644
--- a/config/sentry.php
+++ b/config/sentry.php
@@ -7,7 +7,7 @@ return [
// The release version of your application
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
- 'release' => '4.0.0-beta.250',
+ 'release' => '4.0.0-beta.251',
// When left empty or `null` the Laravel environment will be used
'environment' => config('app.env'),
diff --git a/config/version.php b/config/version.php
index bcd3a45f5c..d88e65a1b8 100644
--- a/config/version.php
+++ b/config/version.php
@@ -1,3 +1,3 @@
<?php
-return '4.0.0-beta.250';
+return '4.0.0-beta.251';
diff --git a/versions.json b/versions.json
index 8b412b664b..e1b15938cb 100644
--- a/versions.json
+++ b/versions.json
@@ -1,7 +1,7 @@
{
"coolify": {
"v4": {
- "version": "4.0.0-beta.250"
+ "version": "4.0.0-beta.251"
}
}
}