CHttpException

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

/var/www/html/src/application/controllers/survey/index.php(251)

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

Stack Trace

#0
+
 /var/www/html/src/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     public function action()
26     {
27         global $surveyid;
#8
+
 /var/www/html/src/index.php(201): CApplication->run()
196 require_once APPPATH . 'core/LSYii_Application' . EXT;
197 
198 $config = require_once(APPPATH . 'config/internal' . EXT);
199 
200 Yii::$enableIncludePath = false;
201 Yii::createApplication('LSYii_Application', $config)->run();
202 
203 /* End of file index.php */
204 /* Location: ./index.php */
2024-03-28 20:42:20 nginx/1.14.1 Yii Framework/1.1.24-dev