Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Reformat long line.

  • Loading branch information...
commit ad304e0b4322d13ff5de4c1746c234177a7ff906 1 parent 599d8b8
@markstory markstory authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/Cake/Controller/Component/SecurityComponent.php
View
7 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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.