Skip to content

Commit

Permalink
Fix error on PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Mar 30, 2014
1 parent 38a39c9 commit 201dae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controller/Component/AuthComponent.php
Expand Up @@ -261,8 +261,9 @@ public function startup(Event $event) {
return $this->_unauthenticated($controller);
}

$authorize = $this->config('authorize');
if ($this->_isLoginAction($controller) ||
empty($this->config('authorize')) ||
empty($authorize) ||
$this->isAuthorized($this->user())
) {
return true;
Expand Down

0 comments on commit 201dae5

Please sign in to comment.