Permalink
Browse files

Reformat long line.

  • Loading branch information...
1 parent 599d8b8 commit ad304e0b4322d13ff5de4c1746c234177a7ff906 @markstory markstory committed Jan 20, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 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;
}

0 comments on commit ad304e0

Please sign in to comment.