From e05457bde6eb651fff611d19e31d7e69823e2394 Mon Sep 17 00:00:00 2001 From: bravo-kernel Date: Sun, 18 Dec 2016 12:28:19 +0000 Subject: [PATCH] Various AuthComponent fixes --- sniff | 0 src/Controller/Component/AuthComponent.php | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 sniff diff --git a/sniff b/sniff old mode 100644 new mode 100755 diff --git a/src/Controller/Component/AuthComponent.php b/src/Controller/Component/AuthComponent.php index a41fef7a..42ab2f8b 100644 --- a/src/Controller/Component/AuthComponent.php +++ b/src/Controller/Component/AuthComponent.php @@ -53,10 +53,10 @@ public function implementedEvents() { * @param \Cake\Event\Event $event Event instance. * @return \Cake\Network\Response|null */ - public function startup(Event $event) { + public function authCheck(Event $event) { $this->_prepareAuthentication(); - return parent::startup($event); + return parent::authCheck($event); } /** @@ -106,7 +106,7 @@ protected function _prepareAuthentication() { * @return array Actions */ protected function _getAuth($path = null) { - if ($this->_config['autoClearCache'] && Configure::read('debug')) { + if ($this->config('autoClearCache') && Configure::read('debug')) { Cache::delete($this->_config['cacheKey'], $this->_config['cache']); } $roles = Cache::read($this->_config['cacheKey'], $this->_config['cache']);