소스 검색

update: fix reset package

tokumeikoi 2 년 전
부모
커밋
a0b14029cd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/User/OrderController.php

+ 1 - 1
app/Http/Controllers/User/OrderController.php

@@ -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'));
                 }
             }