예제 #1
0
 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('*')));
 }
예제 #2
0
 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('*')));
 }