CHttpException

Leider haben Sie dafür keine Berechtigung.

/var/www/LimeSurvey-5.6.41/application/controllers/survey/index.php(268)

256         if ($this->surveyCantBeViewedWithCurrentPreviewAccess($surveyid, $isSurveyActive, $surveyExists)) {
257             $bPreviewRight = $this->userHasPreviewAccessSession($surveyid);
258 
259             if ($bPreviewRight === false) {
260                 $event    = new PluginEvent('onSurveyDenied');
261                 $event->set('surveyId', $surveyid);
262                 $event->set('reason', 'noPreviewPermission');
263 
264                 App()->getPluginManager()->dispatchEvent($event);
265                 if (Permission::model()->getUserId()) {
266                     throw new CHttpException(403, gT("We are sorry but you don't have permissions to do this.", 'unescaped'));
267                 }
268                 throw new CHttpException(401, gT("We are sorry but you don't have permissions to do this.", 'unescaped'));
269             }
270         }
271 
272         // TODO can this be moved to the top?
273         // (Used to be global, used in ExpressionManager, merged into amVars. If not filled in === '')
274         // can this be added in the first computation of $redata?
275         if (isset($_SESSION['survey_' . $surveyid]['srid'])) {
276             $saved_id = $_SESSION['survey_' . $surveyid]['srid'];
277         }
278 
279         // recompute $redata since $saved_id used to be a global
280         $redata = compact(array_keys(get_defined_vars()));

Stack Trace

#0
+
 /var/www/LimeSurvey-5.6.41/application/controllers/survey/index.php(22): Index->action()
17     public $oTemplate;
18 
19     public function run()
20     {
21         useFirebug();
22         $this->action();
23     }
24 
25     /**
26      *
27      * todo: this function is toooo long, to many things happening here. Should be refactored asap!
#8
+
 /var/www/LimeSurvey-5.6.41/index.php(161): CApplication->run()
156 require_once APPPATH . 'core/LSYii_Application' . EXT;
157 
158 $config = require_once(APPPATH . 'config/internal' . EXT);
159 
160 Yii::$enableIncludePath = false;
161 Yii::createApplication('LSYii_Application', $config)->run();
162 
163 /* End of file index.php */
164 /* Location: ./index.php */
2024-03-28 19:39:58 Apache/2.4.38 (Debian) Yii Framework/1.1.28