public function beforeFilter()
 {
     parent::beforeFilter();
     if (!$this->Auth->loggedIn()) {
         $this->redirect('/paszport');
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     if (!in_array($this->request->params['action'], array('naszrzecznik', 'patrzymynawas'))) {
         if (@$this->request->params['ext'] != 'json') {
             $this->redirect('/moje-pisma');
         }
     }
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->deny();
 }
 public function beforeFilter()
 {
     parent::beforeFilter();
 }