Skip to content

Commit

Permalink
fix: #116 inertia integration
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-shulha committed Aug 11, 2024
1 parent 3375c58 commit 7b42be7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/Http/Middleware/EnsureTeamSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ public function handle(Request $request, Closure $next): Response

$doesntHaveSubscription = $subscription === null || ! $subscription->valid();
if ($doesntHaveSubscription) {
if ($request->isJson()) {
return response()->json([
'message' => 'You must have a valid subscription to access this resource.',
], 403);
}

session()->flash('error', 'You must have a valid subscription to access this resource.');

return redirect()->route('teams.billing.show', $team);
Expand Down

0 comments on commit 7b42be7

Please sign in to comment.