public function accessRules()
 {
     return array_merge(array(array("allow", 'actions' => array('create'), 'users' => array('*')), array("allow", 'roles' => array("administrator"))), parent::accessRules());
 }
Ejemplo n.º 2
0
 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array_merge(array(array('allow', 'actions' => array('errorDispositionNotification'), 'users' => array('*')), array('allow', 'roles' => array('administrator'))), parent::accessRules());
 }
 public function accessRules()
 {
     return array_merge(array(array('allow', 'actions' => array('download'), 'users' => array('@')), array('allow', 'roles' => array('administrator')), parent::accessRules()));
 }
 /**
  * Specifies the access control rules.
  * This method is used by the 'accessControl' filter.
  * @return array access control rules
  */
 public function accessRules()
 {
     return array_merge(array(array('allow', 'roles' => array('administrator'))), parent::accessRules());
 }
Ejemplo n.º 5
0
 public function accessRules()
 {
     return array_merge(array(array('allow', 'users' => array('@')), array('allow', 'users' => array('admin')), parent::accessRules()));
 }
Ejemplo n.º 6
0
 public function accessRules()
 {
     return array_merge(array(array('allow', 'actions' => array('registration'), 'users' => array('?')), array('allow', 'actions' => array('login', 'error'), 'users' => array('*')), array('allow', 'actions' => array('index', 'logout', 'askQuestion'), 'users' => array('@')), parent::accessRules()));
 }