CHttpException

Nous sommes désolés, mais vous n’avez pas la permission de faire cela.

/var/www/limesurvey.2i2l.net/www/application/controllers/survey/index.php(232)

220         if ($this->_surveyCantBeViewedWithCurrentPreviewAccess($surveyid, $isSurveyActive, $surveyExists)) {
221             $bPreviewRight = $this->_userHasPreviewAccessSession($surveyid);
222 
223             if ($bPreviewRight === false) {
224                 $event    = new PluginEvent('onSurveyDenied');
225                 $event->set('surveyId', $surveyid);
226                 $event->set('reason', 'noPreviewPermission');
227 
228                 App()->getPluginManager()->dispatchEvent($event);
229                 if(Permission::getUserId()) {
230                     throw new CHttpException(403, gT("We are sorry but you don't have permissions to do this.",'unescaped'));
231                 }
232                 throw new CHttpException(401, gT("We are sorry but you don't have permissions to do this.",'unescaped'));
233             }
234         }
235 
236         // TODO can this be moved to the top?
237         // (Used to be global, used in ExpressionManager, merged into amVars. If not filled in === '')
238         // can this be added in the first computation of $redata?
239         if (isset($_SESSION['survey_'.$surveyid]['srid'])) {
240             $saved_id = $_SESSION['survey_'.$surveyid]['srid'];
241         }
242 
243         // recompute $redata since $saved_id used to be a global
244         $redata = compact(array_keys(get_defined_vars()));

Stack Trace

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