mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating AuthComponent::isAuthorized(), closes #3331
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5711 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
24d4f966b1
commit
c7d2c7bacd
1 changed files with 4 additions and 1 deletions
|
@ -426,7 +426,10 @@ class AuthComponent extends Object {
|
|||
break;
|
||||
case 'model':
|
||||
$this->mapActions();
|
||||
$action = $this->actionMap[$this->params['action']];
|
||||
$action = $this->params['action'];
|
||||
if(isset($this->actionMap[$action])) {
|
||||
$action = $this->actionMap[$action];
|
||||
}
|
||||
if (is_string($object)) {
|
||||
$object = $this->getModel($object);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue