/**
  * undocumented function
  *
  * @return void
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->mapActions(array('fork' => 'create'));
     $this->Auth->allow('index');
     $this->Access->allow('index', 'add');
 }
 /**
  * undocumented function
  *
  * @return void
  *
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->mapActions(array('branches' => 'read', 'rebase' => 'update'));
 }
 public function edit()
 {
     $id = User::get('id');
     $emailSettings = $this->User->EmailSettings->find('list');
     $this->set(compact('emailSettings'));
     $this->conditions = array('contain' => array('EmailSettings'));
     if (!empty($this->data['User']['username'])) {
         $this->data['User']['username'] = Inflector::slug($this->data['User']['username'], '.');
     }
     parent::edit($id, true, false);
     $this->__chawEdit($id);
     $this->render('edit');
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->mapActions(array('index' => 'update'));
 }
 /**
  * undocumented function
  *
  * @return void
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Access->allow('index', 'feed');
 }