Revert "bisa ganti status free plan"
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m32s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 15s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped

This reverts commit be6c6e8cff.
This commit is contained in:
triagungbiantoro
2026-04-26 07:12:20 +07:00
parent be6c6e8cff
commit d9dbcbaad8

View File

@@ -127,14 +127,11 @@ public function update(Request $request, Plan $plan)
public function status(Request $request, $id)
{
$plan = Plan::findOrFail($id);
/*
if ($plan->subscriptionName == 'Free') {
return response()->json([
'message' => __('You can not change the status for free plan.'),
], 406);
}
*/
$plan->update(['status' => $request->status]);
return response()->json(['message' => 'Plan']);
}