|
@@ -783,10 +783,10 @@ class Services extends ApiServices
|
|
|
if (is_null($content)) {
|
|
|
if (!is_null($instance->getProfile())) {
|
|
|
$profileValid = $apiValidationFTTH->validProfile($instance->getProfile());
|
|
|
- if (!$profileValid) {
|
|
|
+ if (!$profileValid && $instance->getProfile() != 1) {
|
|
|
$content = "El id del profile no existe.";
|
|
|
- }else if($profileValid['tenancyId'] !== $instance->getTenancyId()){
|
|
|
- $content = "El perfil especificado no es propiedad de tenancia.";
|
|
|
+ }else if($profileValid->getTenancyId() != $instance->getTenancyId()){
|
|
|
+ $content = "El perfil especificado no es propiedad de tenancy.";
|
|
|
}
|
|
|
}
|
|
|
if (is_null($content)) {
|
|
@@ -947,8 +947,11 @@ class Services extends ApiServices
|
|
|
}
|
|
|
if (is_null($content)) {
|
|
|
if (!is_null($instance->getProfile())) {
|
|
|
- if (!$apiValidationFTTH->validProfile($instance->getProfile())) {
|
|
|
+ $profileValid = $apiValidationFTTH->validProfile($instance->getProfile());
|
|
|
+ if (!$profileValid && $instance->getProfile() != 1) {
|
|
|
$content = "El id del profile no existe.";
|
|
|
+ }else if($profileValid->getTenancyId() != $instance->getTenancyId()){
|
|
|
+ $content = "El perfil especificado no es propiedad de tenancy.";
|
|
|
}
|
|
|
}
|
|
|
if (is_null($content)) {
|