mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-12 06:56:24 +00:00
removing useless calls to mapActions()
Signed-off-by: mark_story <mark@mark-story.com>
This commit is contained in:
parent
e431e86aa4
commit
bc7770aa83
1 changed files with 0 additions and 2 deletions
|
@ -527,7 +527,6 @@ class AuthComponent extends Object {
|
||||||
$valid = $this->Acl->check($user, $this->action());
|
$valid = $this->Acl->check($user, $this->action());
|
||||||
break;
|
break;
|
||||||
case 'crud':
|
case 'crud':
|
||||||
$this->mapActions();
|
|
||||||
if (!isset($this->actionMap[$this->params['action']])) {
|
if (!isset($this->actionMap[$this->params['action']])) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
sprintf(__('Auth::startup() - Attempted access of un-mapped action "%1$s" in controller "%2$s"', true), $this->params['action'], $this->params['controller']),
|
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;
|
break;
|
||||||
case 'model':
|
case 'model':
|
||||||
$this->mapActions();
|
|
||||||
$action = $this->params['action'];
|
$action = $this->params['action'];
|
||||||
if (isset($this->actionMap[$action])) {
|
if (isset($this->actionMap[$action])) {
|
||||||
$action = $this->actionMap[$action];
|
$action = $this->actionMap[$action];
|
||||||
|
|
Loading…
Add table
Reference in a new issue