/** * 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()); }
/** * Override parent implementation to allow everyone to change backend and * update the library * @return array the access control rules */ public function accessRules() { $actions = array('change', 'updateLibrary', 'waitForConnectivity', 'ajaxCheckConnectivity', 'waitForLibraryUpdate'); return array_merge(array(array('allow', 'actions' => $actions)), parent::accessRules()); }
/** * Override parent implementation to allow everyone to change backend and * update the library * @return array the access control rules */ public function accessRules() { $actions = array_merge(array('change', 'updateLibrary', 'waitForConnectivity', 'ajaxCheckConnectivity'), Yii::app()->powerOffManager->getAllowedActions()); return array_merge(array(array('allow', 'actions' => $actions)), 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()); }