Skip to content

Commit

Permalink
Fixed issue: Security question is shown when previewing a question gr…
Browse files Browse the repository at this point in the history
…oup or question
  • Loading branch information
c-schmitz committed Mar 19, 2013
1 parent 263b967 commit 8bbf21e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions application/helpers/frontend_helper.php
Expand Up @@ -1284,8 +1284,7 @@ function buildsurveysession($surveyid,$preview=false)
$loadsecurity = returnGlobal('loadsecurity');

// NO TOKEN REQUIRED BUT CAPTCHA ENABLED FOR SURVEY ACCESS
if ($tokensexist == 0 &&
isCaptchaEnabled('surveyaccessscreen',$thissurvey['usecaptcha']))
if ($tokensexist == 0 && isCaptchaEnabled('surveyaccessscreen',$thissurvey['usecaptcha']) && !$preview)
{

// IF CAPTCHA ANSWER IS NOT CORRECT OR NOT SET
Expand Down

0 comments on commit 8bbf21e

Please sign in to comment.