예제 #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');
 }
예제 #2
0
 /**
  * undocumented function
  *
  * @return void
  *
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->mapActions(array('branches' => 'read', 'rebase' => 'update'));
 }
예제 #3
0
 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'));
 }
예제 #5
0
 /**
  * undocumented function
  *
  * @return void
  */
 function beforeFilter()
 {
     parent::beforeFilter();
     $this->Access->allow('index', 'feed');
 }