/** * undocumented function * * @return void */ function beforeFilter() { parent::beforeFilter(); $this->Auth->mapActions(array('fork' => 'create')); $this->Auth->allow('index'); $this->Access->allow('index', 'add'); }
public function beforeFilter() { parent::beforeFilter(); //$this->Auth->authorize = 'actions'; // chaw /* $this->Auth->autoRedirect = false; $this->Auth->mapActions(array( 'account' => 'update', 'change' => 'update' )); $this->Auth->allow('forgotten', 'verify', 'add', 'logout'); */ $this->Auth->mapActions(array('index' => 'update')); $this->Access->allow('login', 'logout', 'edit', 'confirm', 'view', 'reset', 'invite', 'mass_invite'); }
/** * undocumented function * * @return void * */ function beforeFilter() { parent::beforeFilter(); $this->Auth->mapActions(array('branches' => 'read', 'rebase' => 'update')); }
public function beforeFilter() { parent::beforeFilter(); $this->Auth->mapActions(array('index' => 'update')); }
/** * undocumented function * * @return void */ function beforeFilter() { parent::beforeFilter(); $this->Access->allow('index', 'feed'); }