Merge pull request #529 from v2board/dev

patch-1
This commit is contained in:
tokumeikoi 2022-06-12 21:49:28 +08:00 committed by GitHub
commit 0e75b83507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,7 +90,7 @@ class OrderController extends Controller
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'));
}
}