コード例 #1
0
 /**
  * Sets permissions
  */
 public function beforeFilter()
 {
     //        // save login redirect because it will be overwritten by AppController::beforeFilter
     //        if ($this->Session->read("Auth.loginRedirect") != Router::url(array('action' => 'login'), true)
     //            && $this->Session->read("Auth.loginRedirect") != Router::url(array('action' => 'fblogin'), true)
     //            && $this->Session->read("Auth.loginRedirect") != (Router::url('/', true) . 'oauth/login')
     //        ) {
     //            $this->Auth->loginRedirect = $this->Session->read("Auth.loginRedirect");
     //        }
     parent::beforeFilter();
     $this->Auth->allow(array('login', 'logout', 'add', 'gate', 'ping', 'forgot', 'reset', 'fblogin', 'externalgate', 'import', 'externalfblogin', 'twitterlogin', 'twitter', 'client'));
     $this->OAuth->deny('me');
 }
コード例 #2
0
 /**
  * Displays a view
  *
  * @param mixed What page to display
  *
  * @return void
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
     $this->Auth->allow('regulations', 'privacy');
 }
コード例 #3
0
 public function beforeFilter()
 {
     $this->set('title_for_layout', 'Aplikacje API');
     parent::beforeFilter();
 }
コード例 #4
0
 public function beforeFilter()
 {
     $this->Auth->allow('index');
     parent::beforeFilter();
 }
コード例 #5
0
 /**
  * Sets permissions
  */
 public function beforeFilter()
 {
     parent::beforeFilter();
 }