Forráskód Böngészése

Fixed a create ONU with profile tenancy base

Jean Sumara 5 éve
szülő
commit
9cbf2c2aa4
2 módosított fájl, 3 hozzáadás és 2 törlés
  1. 2 1
      .gitignore
  2. 1 1
      src/Swagger/Client/FTTH/Services.php

+ 2 - 1
.gitignore

@@ -6,4 +6,5 @@
 !/var/logs
 /var/logs/*
 !var/logs/.gitkeep
-.idea
+.idea
+.vscode

+ 1 - 1
src/Swagger/Client/FTTH/Services.php

@@ -785,7 +785,7 @@ class Services extends ApiServices
                                         $profileValid = $apiValidationFTTH->validProfile($instance->getProfile());
                                         if (!$profileValid && $instance->getProfile() != 1) {
                                             $content = "El id del profile no existe.";
-                                        }else if($profileValid->getTenancyId() != $instance->getTenancyId()){
+                                        }else if($profileValid->getTenancyId() != 1 && $profileValid->getTenancyId() != $instance->getTenancyId()){
                                             $content = "El perfil especificado no es propiedad de tenancy.";
                                         }
                                     }