public function accessRules() { parent::accessRules(); return array(array('allow', 'actions' => array('index', 'detail', 'add', 'edit', 'delete'), 'roles' => array('admin', 'manager')), array('allow', 'actions' => array('index', 'detail', 'add', 'edit', 'delete'), 'roles' => array('storeadmin', 'storemanager')), array('deny', 'users' => array('*'))); }
public function accessRules() { parent::accessRules(); return array(array('allow', 'actions' => array('index', 'checkCode', 'listStore', 'administrator', 'detail', 'add', 'addAjax', 'edit', 'status', 'delete'), 'roles' => array('admin', 'manager')), array('allow', 'actions' => array('index', 'checkCode', 'detail', 'add', 'edit', 'delete', 'status'), 'roles' => array('storeadmin', 'storemanager')), array('deny', 'users' => array('*'))); }