removing useless calls to mapActions()

Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
Ceeram 2010-11-08 01:14:03 +01:00 committed by mark_story
parent e431e86aa4
commit bc7770aa83

View file

@ -527,7 +527,6 @@ class AuthComponent extends Object {
$valid = $this->Acl->check($user, $this->action());
break;
case 'crud':
$this->mapActions();
if (!isset($this->actionMap[$this->params['action']])) {
trigger_error(
sprintf(__('Auth::startup() - Attempted access of un-mapped action "%1$s" in controller "%2$s"', true), $this->params['action'], $this->params['controller']),
@ -542,7 +541,6 @@ class AuthComponent extends Object {
}
break;
case 'model':
$this->mapActions();
$action = $this->params['action'];
if (isset($this->actionMap[$action])) {
$action = $this->actionMap[$action];