Skip to content

Commit

Permalink
Fixed issue #16219: Testing a question will not be possible if admin …
Browse files Browse the repository at this point in the history
…participated in the survey (#1458)
  • Loading branch information
gabrieljenik committed Jul 2, 2020
1 parent 398d07f commit ee7db52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/survey/index.php
Expand Up @@ -364,7 +364,7 @@ public function action()
//CHECK FOR PREVIOUSLY COMPLETED COOKIE
//If cookies are being used, and this survey has been completed, a cookie called "PHPSID[sid]STATUS" will exist (ie: SID6STATUS) and will have a value of "COMPLETE"
$sCookieName = "LS_".$surveyid."_STATUS";
if (isset($_COOKIE[$sCookieName]) && $_COOKIE[$sCookieName] == "COMPLETE" && $thissurvey['usecookie'] == "Y" && $tokensexist != 1 && (!isset($param['newtest']) || $param['newtest'] != "Y")) {
if (!$previewmode && isset($_COOKIE[$sCookieName]) && $_COOKIE[$sCookieName] == "COMPLETE" && $thissurvey['usecookie'] == "Y" && $tokensexist != 1 && (!isset($param['newtest']) || $param['newtest'] != "Y")) {

$aErrors = array(gT('Error'));
$aMessage = array(
Expand Down

0 comments on commit ee7db52

Please sign in to comment.