Fix: avoid warning with multicompany tranverse mode
This commit is contained in:
parent
ca13d7b560
commit
d796199ed0
@ -1190,8 +1190,11 @@ else
|
|||||||
$res=$object->fetch_optionals();
|
$res=$object->fetch_optionals();
|
||||||
|
|
||||||
// Check if user has rights
|
// Check if user has rights
|
||||||
$object->getrights();
|
if (empty($conf->global->MULTICOMPANY_TRANSVERSE_MODE))
|
||||||
if (empty($object->nb_rights) && $object->statut != 0) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
|
{
|
||||||
|
$object->getrights();
|
||||||
|
if (empty($object->nb_rights) && $object->statut != 0) setEventMessages($langs->trans('UserHasNoPermissions'), null, 'warnings');
|
||||||
|
}
|
||||||
|
|
||||||
// Connexion ldap
|
// Connexion ldap
|
||||||
// pour recuperer passDoNotExpire et userChangePassNextLogon
|
// pour recuperer passDoNotExpire et userChangePassNextLogon
|
||||||
@ -1731,7 +1734,7 @@ else
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</div>\n";
|
print "</div>\n";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user