src/ShopArticleReviewBundle/objects/WebModules/MTPkgShopArticleReviewCore/MTPkgShopArticleReviewCore.class.php
protected function NeedCaptcha()
    {
        $bNeedCaptcha = false;
        $oUser = TdbDataExtranetUser::GetInstance();
        $oModuleConfiguration = $this->GetModuleConfiguration();
        if (!$oModuleConfiguration->fieldAllowWriteReviewLoggedinUsersOnly && !$oUser->IsLoggedIn()) {
            $bNeedCaptcha = true;
        }

        return $bNeedCaptcha;
    }
protected function NeedCaptcha()
    {
        $bNeedCaptcha = false;
        $oUser = TdbDataExtranetUser::GetInstance();
        $oModuleConfiguration = $this->GetModuleConfiguration();
        if (!$oModuleConfiguration->fieldAllowWriteReviewLoggedinUsersOnly && !$oUser->IsLoggedIn()) {
            $bNeedCaptcha = true;
        }

        return $bNeedCaptcha;
    }
protected function NeedCaptcha ( ) { $ bNeedCaptcha = false ; $ oUser = TdbDataExtranetUser :: GetInstance ( ) ; $ oModuleConfiguration = $ this -> GetModuleConfiguration ( ) ; if ( ! $ oModuleConfiguration -> fieldAllowWriteReviewLoggedinUsersOnly && ! $ oUser -> IsLoggedIn ( ) ) { $ bNeedCaptcha = true ; } return $ bNeedCaptcha ; }
Check if captcha field is needed to show in forms.

@return bool
Check if captcha field is needed to show in forms .