Skip to content

Commit

Permalink
Fixed issue #17140: Wrong message for Superadmin for outdated survey URL
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Dec 7, 2021
1 parent caa4dec commit b05ef2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/SurveyAdministrationController.php
Expand Up @@ -107,7 +107,7 @@ public function actionView()
$iSurveyID = $this->getSurveyIdFromGetRequest();

if (!Permission::model()->hasSurveyPermission((int)$iSurveyID, 'survey', 'read')) {
Yii::app()->user->setFlash('error', gT("Access denied"));
Yii::app()->user->setFlash('error', gT("No permission or survey does not exist."));
$this->redirect(Yii::app()->request->urlReferrer);
}

Expand Down

0 comments on commit b05ef2d

Please sign in to comment.