Skip to content

Commit

Permalink
Auth enhancement, less calls to user()
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Mar 23, 2011
1 parent 9dd39bb commit 0acbba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/controller/components/auth.php
Expand Up @@ -329,7 +329,7 @@ public function startup($controller) {
}
}
}
if (empty($this->authorize) || $this->isAuthorized()) {
if (empty($this->authorize) || $this->isAuthorized($this->user())) {
return true;
}

Expand Down

0 comments on commit 0acbba8

Please sign in to comment.