Fixing typo

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4971 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-05-01 10:36:27 +00:00
parent 5cd13cff26
commit 3f86d27fd7

View file

@ -204,7 +204,7 @@ class SecurityComponent extends Object {
// Check requireAuth
if(is_array($this->requireAuth) && !empty($this->requireAuth) && !empty($controller->data)) {
if(in_array($controller->action, $this->requireAuth) || $this->requireAuth == array('*')) {
if(!isset($controller->data['_Token'])) {
if(!isset($controller->data['__Token'])) {
if(!$this->blackHole($controller, 'auth')) {
return null;
}