Skip to content

Commit

Permalink
Fixed issue: Error message "Call to undefined method stdClass::decryp…
Browse files Browse the repository at this point in the history
…t()" when deleting a participant while using that to fill out the survey
  • Loading branch information
c-schmitz committed Feb 15, 2024
1 parent 7ac5dab commit f7338a5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/helpers/frontend_helper.php
Expand Up @@ -381,6 +381,9 @@ function submittokens($quotaexit = false)

// check how many uses the token has left
$token = Token::model($surveyid)->findByAttributes(array('token' => $clienttoken));
if (!$token) {
throw new CHttpException(403, gT("Invalid access code"));
}
$token->scenario = 'FinalSubmit'; // Do not XSS filter token data

if ($quotaexit == true) {
Expand Down

0 comments on commit f7338a5

Please sign in to comment.