Sfoglia il codice sorgente

enable IP check, looks like a database problem

andre 4 anni fa
parent
commit
63bf55ca61
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      app/UI/VmCreate/Providers/VmCreateProvider.php

+ 2 - 2
app/UI/VmCreate/Providers/VmCreateProvider.php

@@ -114,11 +114,11 @@ class VmCreateProvider extends BaseModelDataProvider implements ClientArea
                 ->setMessageAndTranslate('You are not able to set :additional_disks_size: GB of the additional disks size. The available size is: :size: GB');
                 ->setMessageAndTranslate('You are not able to set :additional_disks_size: GB of the additional disks size. The available size is: :size: GB');
         }
         }
         //ipv4
         //ipv4
-/*        if($this->configuration()->serverIpv4->min &&  $this->configuration()->serverIpv4->min > $this->countPublicIpv4() ){
+        if($this->configuration()->serverIpv4->min &&  $this->configuration()->serverIpv4->min > $this->countPublicIpv4() ){
             return (new HtmlDataJsonResponse())
             return (new HtmlDataJsonResponse())
                 ->setStatusError()
                 ->setStatusError()
                 ->setMessageAndTranslate('Select the Virtual Network with IPv4 address');
                 ->setMessageAndTranslate('Select the Virtual Network with IPv4 address');
-        } */
+        }
         $this->vmModel = new VmModel();
         $this->vmModel = new VmModel();
         $this->fillVmModel();
         $this->fillVmModel();
         if($this->vmTemplate instanceof  Kvm){
         if($this->vmTemplate instanceof  Kvm){