From 44b2d56db9022dccecd9e0553ad8130c941b50c4 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Wed, 26 Oct 2022 21:06:01 +0800 Subject: [PATCH] update: fix order capacity --- app/Http/Controllers/User/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/User/OrderController.php b/app/Http/Controllers/User/OrderController.php index 2bae19b5..78c4b1b2 100755 --- a/app/Http/Controllers/User/OrderController.php +++ b/app/Http/Controllers/User/OrderController.php @@ -85,7 +85,7 @@ class OrderController extends Controller abort(500, __('Subscription plan does not exist')); } - if (!$planService->haveCapacity() && $request->input('period') !== 'reset_price') { + if ($user->plan_id !== $plan->id && !$planService->haveCapacity() && $request->input('period') !== 'reset_price') { abort(500, __('Current product is sold out')); }