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:
gwoo 2007-10-03 00:50:23 +00:00
parent 24d4f966b1
commit c7d2c7bacd

View file

@ -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);
}