fix: 🐛 See last commit

This commit is contained in:
IceToast 2022-07-28 23:33:04 +02:00 committed by IceToast
parent 35734579ae
commit cf62cdef1f
No known key found for this signature in database
GPG key ID: 1464353E063A5B97

View file

@ -128,10 +128,7 @@ class ServerController extends Controller
// Min. Credits
if (
Auth::user()->credits <
($product->minimum_credits == -1
? config('SETTINGS::USER:MINIMUM_REQUIRED_CREDITS_TO_MAKE_SERVER', 50)
: $product->minimum_credits) ||
Auth::user()->credits < $product->minimum_credits ||
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!');