Exemplo n.º 1
0
 /**
  * undocumented function
  *
  * @return void
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->mapActions(array('fork' => 'create'));
     $this->Auth->allow('index');
     $this->Access->allow('index', 'add');
 }
Exemplo n.º 2
0
 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');
 }
Exemplo n.º 3
0
 /**
  * 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'));
 }
Exemplo n.º 5
0
 /**
  * undocumented function
  *
  * @return void
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Access->allow('index', 'feed');
 }