Commit ca06169c authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

UserContextService: la création d'un UserWrapper doit retourner null si aucune...

UserContextService: la création d'un UserWrapper doit retourner null si aucune donnée d'identité n'est dispo.
parent 1985732a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -261,6 +261,10 @@ class UserContextService extends BaseUserContextService
     */
    private function createUserWrapperFromIdentity()
    {
        if (!$this->getIdentity()) {
            return null;
        }

        $userWrapperFactory = new UserWrapperFactory();
        $userWrapper = $userWrapperFactory->createInstanceFromIdentity($this->getIdentity());