From 24d4f966b170a714d06205c564c2c312145a1d93 Mon Sep 17 00:00:00 2001 From: gwoo Date: Tue, 2 Oct 2007 18:32:44 +0000 Subject: [PATCH] modifying Auth::startup(), closes #3339 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5710 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/controller/components/auth.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cake/libs/controller/components/auth.php b/cake/libs/controller/components/auth.php index 85a8e534b..b45baaf37 100644 --- a/cake/libs/controller/components/auth.php +++ b/cake/libs/controller/components/auth.php @@ -262,16 +262,16 @@ class AuthComponent extends Object { return; } + if ($this->allowedActions == array('*') || in_array($controller->action, $this->allowedActions)) { + return false; + } + if (!$this->__setDefaults()) { return false; } $this->data = $controller->data = $this->hashPasswords($controller->data); - if ($this->allowedActions == array('*') || in_array($controller->action, $this->allowedActions)) { - return false; - } - if (!isset($controller->params['url']['url'])) { $url = ''; } else {