Просмотр исходного кода

try to create a limited domain

andre 2 лет назад
Родитель
Сommit
59619d7c70
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/Http/Actions/CreateAccount.php

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

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