Browse Source

try to create a limited domain

andre 2 năm trước cách đây
mục cha
commit
8af11c5046

+ 2 - 2
app/Http/Actions/CreateAccount.php

@@ -92,7 +92,7 @@ class CreateAccount extends AddonController
         $productManager->loadById($params['pid']);
         $productManager->loadById($params['pid']);
         $acc_limit = $productManager->get('acc_limit');
         $acc_limit = $productManager->get('acc_limit');
         $accounts = $productManager->get('acc_base') + $params['configoptions']['acc_add'] + $params['configoptions']['acc_new'];
         $accounts = $productManager->get('acc_base') + $params['configoptions']['acc_add'] + $params['configoptions']['acc_new'];
-        if ($acc_limit >= 0) {
+/*        if ($acc_limit >= 0) {
             $attr['userMaxCountCheckbox'] = TRUE;
             $attr['userMaxCountCheckbox'] = TRUE;
             if ($accounts > $acc_limit) {
             if ($accounts > $acc_limit) {
                 $accounts = $acc_limit;
                 $accounts = $acc_limit;
@@ -100,7 +100,7 @@ class CreateAccount extends AddonController
             $attr['userMaxCount'] = $acc_limit;
             $attr['userMaxCount'] = $acc_limit;
         } else {
         } else {
             $attr['userMaxCountCheckbox'] = FALSE;
             $attr['userMaxCountCheckbox'] = FALSE;
-        }
+        }*/
         $domainMaxSize = $productManager->get('domainMaxSize');
         $domainMaxSize = $productManager->get('domainMaxSize');
         $domainSize = $productManager->get('domainBaseSize') + $params['configoptions']['domainAddSize'] + $params['configoptions']['domainNewSize'];
         $domainSize = $productManager->get('domainBaseSize') + $params['configoptions']['domainAddSize'] + $params['configoptions']['domainNewSize'];
         if ($domainMaxSize >= 0) {
         if ($domainMaxSize >= 0) {