public function isAuthorized($user = null) { if ($user != null && $this->request->action == 'changePassword') { return true; } return parent::isAuthorized($user); }
/** * Initializes and loads extra components * * @return void */ public function initialize() { parent::initialize(); $this->loadComponent('UpManager'); $this->loadComponent('SimpleImage'); }
public function beforeFilter() { parent::beforeFilter(); $this->Auth->allow('login', 'register'); }