mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
5cd13cff26
commit
3f86d27fd7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue