src/ShopBundle/objects/db/TShopOrderStep/TShopStepLoginEndPoint.class.php
protected function AllowAccessToStep($bRedirectToPreviousPermittedStep = false)
    {
        $bAllowAccess = parent::AllowAccessToStep($bRedirectToPreviousPermittedStep);
        if ($bAllowAccess && $bRedirectToPreviousPermittedStep) {
            $oUser = TdbDataExtranetUser::GetInstance();
            if ($oUser->IsLoggedIn()) {
                $this->JumpToStep($this->GetNextStep());
            }
        }

        return $bAllowAccess;
    }
protected function AllowAccessToStep($bRedirectToPreviousPermittedStep = false)
    {
        $bAllowAccess = parent::AllowAccessToStep($bRedirectToPreviousPermittedStep);
        if ($bAllowAccess && $bRedirectToPreviousPermittedStep) {
            $oUser = TdbDataExtranetUser::GetInstance();
            if ($oUser->IsLoggedIn()) {
                $this->JumpToStep($this->GetNextStep());
            }
        }

        return $bAllowAccess;
    }
protected function AllowAccessToStep ( $ bRedirectToPreviousPermittedStep = false ) { $ bAllowAccess = parent :: AllowAccessToStep ( $ bRedirectToPreviousPermittedStep ) ; if ( $ bAllowAccess && $ bRedirectToPreviousPermittedStep ) { $ oUser = TdbDataExtranetUser :: GetInstance ( ) ; if ( $ oUser -> IsLoggedIn ( ) ) { $ this -> JumpToStep ( $ this -> GetNextStep ( ) ) ; } } return $ bAllowAccess ; }
we allow access only if
a) the user is not yet registered.

@param bool $bRedirectToPreviousPermittedStep

@return bool
we allow access only if a ) the user is not yet registered .