mirror of
https://github.com/v2board/v2board.git
synced 2025-01-10 16:19:10 +08:00
update: fix order capacity
This commit is contained in:
parent
1a79a7e7f6
commit
44b2d56db9
@ -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'));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user