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