/** * Specifies the access control rules. * This method is used by the 'accessControl' filter. * @return array access control rules */ public function accessRules() { return array(array('allow', 'actions' => array('edit'), 'users' => UserModule::getAdminsAndRoot()), array('allow', 'actions' => array('list', 'create', 'sql'), 'users' => array('root')), array('deny', 'users' => array('*'))); }