Skip to content

Commit

Permalink
removing useless calls to mapActions()
Browse files Browse the repository at this point in the history
Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information
ceeram authored and markstory committed Nov 8, 2010
1 parent e431e86 commit bc7770a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cake/libs/controller/components/auth.php
Expand Up @@ -527,7 +527,6 @@ function isAuthorized($type = null, $object = null, $user = null) {
$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']),
Expand All @@ -542,7 +541,6 @@ function isAuthorized($type = null, $object = null, $user = null) {
}
break;
case 'model':
$this->mapActions();
$action = $this->params['action'];
if (isset($this->actionMap[$action])) {
$action = $this->actionMap[$action];
Expand Down

0 comments on commit bc7770a

Please sign in to comment.