Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing useless calls to mapActions()

Signed-off-by: mark_story <mark@mark-story.com>
  • Loading branch information...
commit bc7770aa83ef0fed5d523923ae91f4aad0a23c2b 1 parent e431e86
@ceeram ceeram authored markstory committed
Showing with 0 additions and 2 deletions.
  1. +0 −2  cake/libs/controller/components/auth.php
View
2  cake/libs/controller/components/auth.php
@@ -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']),
@@ -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];
Please sign in to comment.
Something went wrong with that request. Please try again.