Skip to content

Commit

Permalink
Reformat long line.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Jan 20, 2012
1 parent 599d8b8 commit ad304e0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit ad304e0

Please sign in to comment.