public function beforeFilter(Event $event) { parent::beforeFilter($event); $this->viewBuilder()->layout('adminMain'); //$this->Auth->allow('add','edit'); $this->Authadmin->deny(['add', 'edit', 'delete', 'index']); }
public function beforeFilter(Event $event) { $this->Auth->autoRedirect = FALSE; parent::beforeFilter($event); $this->viewBuilder()->layout('user_profile'); $this->Auth->deny(['add', 'index']); //$this->Auth->allow('index','add'); $this->set('userData', $this->Auth->user()); }
/** * Before Filter * @param Cake\Event\Event $event The beforeFilter event * @return void */ public function beforeFilter(Event $event) { parent::beforeFilter($event); }
public function beforeFilter(Event $event) { parent::beforeFilter($event); $this->Authadmin->allow('add'); }