public function beforeFilter(Event $event) { parent::beforeFilter($event); if (isset($this->Auth)) { $this->Auth->allow('index', 'update_select'); } }
public function beforeFilter(Event $event) { parent::beforeFilter($event); if ($specific = Configure::read('Country.image_path')) { $this->imageFolder = WWW_ROOT . 'img' . DS . $specific . DS; } else { $this->imageFolder = Plugin::path('Data') . DS . 'webroot' . DS . 'img' . DS . 'country_flags' . DS; } }
public function beforeFilter(Event $event) { parent::beforeFilter($event); if ($specific = Configure::read('Country.image_path')) { $this->imageFolder = WWW_ROOT . 'img' . DS . $specific . DS; } else { $this->imageFolder = Plugin::path('Data') . DS . 'webroot' . DS . 'img' . DS . 'country_flags' . DS; } if (isset($this->Auth)) { $this->Auth->allow('index'); /* $this->Auth->actionMap = array_merge($this->Auth->actionMap, array( 'admin_down' => 'edit', 'admin_up' => 'edit' )); */ } }
public function beforeFilter(Event $event) { parent::beforeFilter($event); }