コード例 #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
ファイル: users_controller.php プロジェクト: Galvanio/Kinspir
 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');
 }
コード例 #4
0
 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');
 }