Skip to content

Commit

Permalink
Merge pull request #51 from bravo-kernel/auth-fixes
Browse files Browse the repository at this point in the history
Various Auth fixes
  • Loading branch information
dereuromark committed Dec 18, 2016
2 parents 0e68711 + e05457b commit 0ad81ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Empty file modified sniff
100644 → 100755
Empty file.
6 changes: 3 additions & 3 deletions src/Controller/Component/AuthComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down Expand Up @@ -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']);
Expand Down

0 comments on commit 0ad81ef

Please sign in to comment.