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