Exemplo n.º 1
0
 /**
  * Scaffold
  *
  * @var mixed
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow('add', 'edit', 'index');
     // Letting users register themselves, for now
 }
Exemplo n.º 2
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Accreditation->bindModel(array('hasOne' => array('Event' => array('foreignKey' => false, 'conditions' => array('Accreditation.event_id = Event.id')), 'AccreditationType' => array('foreignKey' => false, 'conditions' => array('Accreditation.accreditation_type_id = AccreditationType.id')))));
 }
Exemplo n.º 3
0
 public function beforeFilter()
 {
     parent::beforeFilter();
     //$this->Auth->allow('display');
 }