CHttpException

Disculpe, pero no tiene permiso para realizar eso.

/var/www/vhosts/solutions-cps.com/httpdocs/application/controllers/survey/index.php(236)

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

Stack Trace

#0
+
 /var/www/vhosts/solutions-cps.com/httpdocs/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/vhosts/solutions-cps.com/httpdocs/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-29 10:31:38 Apache Yii Framework/1.1.24-dev