function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow('process');
     if (isset($this->Security) && $this->action == 'process') {
         $this->Security->validatePost = false;
     }
 }
コード例 #2
0
 /**
  * beforeFilter makes sure the process is allowed by auth
  *  since paypal will need direct access to it.
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     foreach (array_keys($this->components) as $component) {
         if (is_a($this->{$component}, 'AuthComponent')) {
             $this->{$component}->allow('process');
         }
     }
     if (isset($this->Security) && $this->action == 'process') {
         $this->Security->validatePost = false;
     }
 }