Skip to content

Commit

Permalink
Merge pull request #529 from v2board/dev
Browse files Browse the repository at this point in the history
patch-1
  • Loading branch information
tokumeikoi committed Jun 12, 2022
2 parents cb63192 + a0b1402 commit 0e75b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/User/OrderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function save(OrderSave $request)
if (!$user->plan_id) {
abort(500, __('Subscription has expired or no active subscription, unable to purchase Data Reset Package'));
} else {
if ($user->plan_id !== $request->input('plan_id')) {
if ($user->plan_id !== $plan->id) {
abort(500, __('This subscription reset package does not apply to your subscription'));
}
}
Expand Down

0 comments on commit 0e75b83

Please sign in to comment.