浏览代码

Merge branch 'hotfix-create-onu' into 'master'

Fixed a create ONU with profile tenancy base

See merge request interlink-sa/flowdat3/modules/api!6
Jean Sumara Leopoldo 5 年之前
父节点
当前提交
312c8bd5ad
共有 2 个文件被更改,包括 3 次插入2 次删除
  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.";
                                         }
                                     }