diff --git a/lib/Cake/Controller/Component/SecurityComponent.php b/lib/Cake/Controller/Component/SecurityComponent.php index bbf0314a87d..485d60b05a0 100644 --- a/lib/Cake/Controller/Component/SecurityComponent.php +++ b/lib/Cake/Controller/Component/SecurityComponent.php @@ -380,7 +380,12 @@ protected function _authRequired($controller) { if ($this->Session->check('_Token')) { $tData = $this->Session->read('_Token'); - if (!empty($tData['allowedControllers']) && !in_array($this->request->params['controller'], $tData['allowedControllers']) || !empty($tData['allowedActions']) && !in_array($this->request->params['action'], $tData['allowedActions'])) { + if ( + !empty($tData['allowedControllers']) && + !in_array($this->request->params['controller'], $tData['allowedControllers']) || + !empty($tData['allowedActions']) && + !in_array($this->request->params['action'], $tData['allowedActions']) + ) { if (!$this->blackHole($controller, 'auth')) { return null; }