/** * Override parent implementation so we don't get stuck in a redirect loop * @param CFilterChain $filterChain */ public function filterCheckConfiguration($filterChain) { if ($this->route === 'backend/create') { $filterChain->run(); } else { parent::filterCheckConfiguration($filterChain); } }
/** * Override parent implementation to allow anyone to post log events * @return array the access rules for this controller */ public function accessRules() { return array_merge(array(array('allow', 'actions' => array('logEvent'))), parent::accessRules()); }
/** * @return array the access control rules */ public function accessRules() { return array_merge(array(array('allow', 'actions' => Yii::app()->powerOffManager->getAllowedActions())), parent::accessRules()); }
/** * Override the admin only access rules to allow ordinary users to change * their passwords * @return the access rules for this controller */ public function accessRules() { return array_merge(array(array('allow', 'actions' => array('changePassword'))), parent::accessRules()); }