mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-15 08:17:02 +00:00
fix: members cannot manage subscriptions
This commit is contained in:
1 parent
36c31dcd67
commit
8fe658bacc
5 files changed
+9
-3
No files matched your search
@@ -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');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user