|
|
|
@ -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; |
|
|
|
|
|
|
|
|
|