Protecting survey preview page

1.9.x
unknown 11 years ago
parent 95d49373ee
commit fa614b9067
  1. 2
      main/survey/fillsurvey.php

@ -69,7 +69,7 @@ if ($surveyCode != "") {
// If is anonymous and is not allowed to take the survey to anonymous users, forbid access:
if (!isset($rowAnonymous['anonymous']) || ($rowAnonymous['anonymous'] == 0 && api_is_anonymous($_user['user_id'], true)) || count($rowAnonymous) == 0) {
api_not_allowed();
}
}
// If is anonymous and it is allowed to take the survey as anonymous, mark survey as anonymous:
else if (api_is_anonymous($_user['user_id'], true)) $isAnonymous = true;

Loading…
Cancel
Save