CHttpException

Leider haben Sie dafür keine Berechtigung.

/var/www/limesurvey/application/controllers/survey/index.php(254)

242         if ($this->_surveyCantBeViewedWithCurrentPreviewAccess($surveyid, $isSurveyActive, $surveyExists)) {
243             $bPreviewRight = $this->_userHasPreviewAccessSession($surveyid);
244 
245             if ($bPreviewRight === false) {
246                 $event    = new PluginEvent('onSurveyDenied');
247                 $event->set('surveyId', $surveyid);
248                 $event->set('reason', 'noPreviewPermission');
249 
250                 App()->getPluginManager()->dispatchEvent($event);
251                 if (Permission::model()->getUserId()) {
252                     throw new CHttpException(403, gT("We are sorry but you don't have permissions to do this.", 'unescaped'));
253                 }
254                 throw new CHttpException(401, gT("We are sorry but you don't have permissions to do this.", 'unescaped'));
255             }
256         }
257 
258         // TODO can this be moved to the top?
259         // (Used to be global, used in ExpressionManager, merged into amVars. If not filled in === '')
260         // can this be added in the first computation of $redata?
261         if (isset($_SESSION['survey_' . $surveyid]['srid'])) {
262             $saved_id = $_SESSION['survey_' . $surveyid]['srid'];
263         }
264 
265         // recompute $redata since $saved_id used to be a global
266         $redata = compact(array_keys(get_defined_vars()));

Stack Trace

#0
+
 /var/www/limesurvey/application/controllers/survey/index.php(26): index->action()
21     public $oTemplate;
22 
23     public function run()
24     {
25         useFirebug();
26         $this->action();
27     }
28 
29     public function action()
30     {
31         global $surveyid;
#8
+
 /var/www/limesurvey/index.php(192): CApplication->run()
187 require_once APPPATH . 'core/LSYii_Application' . EXT;
188 
189 $config = require_once(APPPATH . 'config/internal' . EXT);
190 
191 Yii::$enableIncludePath = false;
192 Yii::createApplication('LSYii_Application', $config)->run();
193 
194 /* End of file index.php */
195 /* Location: ./index.php */
2024-03-28 13:22:27 Apache/2.4.41 Yii Framework/1.1.24-dev