Created
November 3, 2015 09:32
-
-
Save damianoporta/f8650aa5f409a145d48f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Callback Auth isAuthorized | |
* | |
* @param type $user | |
* @return boolean | |
*/ | |
public function isAuthorized($user = null) | |
{ | |
parent::isAuthorized($user); | |
return true; | |
} | |
/** | |
* Callback CakePHP beforeFilter | |
* | |
* @param \Cake\Event\Event $event | |
*/ | |
public function beforeFilter(\Cake\Event\Event $event) | |
{ | |
parent::beforeFilter($event); | |
$this->Auth->allow(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment