Commit 32cdf3dd authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Correction de bug : les personnels sans SupannEmpId peuvent maintenant se...

Correction de bug : les personnels sans SupannEmpId peuvent maintenant se connecter à OSE normalement
parent 5ef1d3ee
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -162,7 +162,13 @@ class LdapConnecteur extends AbstractService

        $ldapUser = $this->serviceUserContext->getLdapUser();

        if ($ldapUser) return $ldapUser->getData(strtolower($this->getUtilisateurCode()));
        if ($ldapUser){
            try {
                return $ldapUser->getData(strtolower($this->getUtilisateurCode()));
            }catch(\Exception $e){
                return null;
            }
        }

        return null;
    }