/** * beforeFilter callback * * @return void */ public function beforeFilter() { parent::beforeFilter(); if (Configure::read('Cart.allowAnonymousCheckout') == true) { $this->Auth->allow('*'); } }
/** * beforeFilter callback * * @return void */ public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('index', 'view', 'remove_item', 'checkout', 'callback', 'finish_order'); if ($this->request->params['action'] == 'callback') { $this->Components->disable('Security'); } }
/** * beforeFilter callback * * @return void */ public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('callback', 'checkout', 'index', 'confirm', 'finish'); }
/** * beforeFilter callback * * @return void */ public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('checkout'); }