Parcourir la source

HotFix to change Hard-Coded Server-limit-after-irl-purchase

This is absolutely not tested.
Dennis il y a 3 ans
Parent
commit
211319ea98
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3 3
      app/Http/Controllers/Admin/PaymentController.php

+ 3 - 3
app/Http/Controllers/Admin/PaymentController.php

@@ -141,9 +141,9 @@ class PaymentController extends Controller
                 $user->increment('credits', $paypalProduct->quantity);
 
                 //update server limit
-                if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10) !== 0) {
-                    if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE', 10)) {
-                        $user->update(['server_limit' => 10]);
+                if (Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE') !== 0) {
+                    if ($user->server_limit < Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')) {
+                        $user->update(['server_limit' => Configuration::getValueByKey('SERVER_LIMIT_AFTER_IRL_PURCHASE')]);
                     }
                 }