updating Auth component

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5419 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-07-09 04:38:58 +00:00
parent a1019dfad3
commit 49817ea42d

View file

@ -300,6 +300,8 @@ class AuthComponent extends Object {
}
}
}
if($this->authorize) {
extract($this->__authType($this->authorize));
if($type !== 'controller') {
if(isset($controller->Acl)) {
@ -328,6 +330,8 @@ class AuthComponent extends Object {
}
}
}
}
$this->Session->setFlash($this->authError);
$controller->redirect($controller->referer(), null, true);
return false;