From b80a8640deddeec7c6f2e5763d739e5cfcd957b5 Mon Sep 17 00:00:00 2001 From: IceToast Date: Thu, 28 Jul 2022 23:20:39 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Server=20creation=20fail?= =?UTF-8?q?=20when=20server.price=20=3D=20user.credits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ServerController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/ServerController.php b/app/Http/Controllers/ServerController.php index a740fbdb..e443f64e 100644 --- a/app/Http/Controllers/ServerController.php +++ b/app/Http/Controllers/ServerController.php @@ -111,7 +111,7 @@ class ServerController extends Controller ($product->minimum_credits == -1 ? config('SETTINGS::USER:MINIMUM_REQUIRED_CREDITS_TO_MAKE_SERVER', 50) : $product->minimum_credits) || - Auth::user()->credits <= $product->price + Auth::user()->credits < $product->price ) { return redirect()->route('servers.index')->with('error', "You do not have the required amount of " . CREDITS_DISPLAY_NAME . " to use this product!"); }