Skip to content

Commit

Permalink
Fixed issue #17451: Upload File link after session expire leads to a …
Browse files Browse the repository at this point in the history
…message unclear to users

Dev: 401 with session expired
Dev: Cherry-picked
  • Loading branch information
Shnoulle committed Jul 16, 2021
1 parent c2f1e4a commit 2b437fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions application/controllers/UploaderController.php
Expand Up @@ -24,6 +24,9 @@ class UploaderController extends SurveyController
public function run($actionID)
{
$surveyid = Yii::app()->session['LEMsid'];
if(empty($surveyid)) {
throw new CHttpException(401, gT("We are sorry but your session has expired."));
}
$oSurvey = Survey::model()->findByPk($surveyid);
if (!$oSurvey) {
throw new CHttpException(400);
Expand Down

0 comments on commit 2b437fd

Please sign in to comment.