Commit 5f0f162a authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Bug d'affichage des paramètres en cas de LDAP désactivé corrigé

parent 7a2d2b9f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -159,6 +159,8 @@ class LdapConnecteur extends AbstractService
     */
    public function getUtilisateur($login, $autoInsert = true)
    {
        if (!\AppConfig::get('ldap', 'actif', true)) return null;

        if ($user = $this->mapperUser->findByUsername($login)) return $user; // si on le trouve alors c'est OK

        if ($people = $this->mapperPeople->findOneByUsername($login)) {