Skip to content

Commit

Permalink
Also adjust return types for _authRequired()
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Nov 6, 2014
1 parent 25414d8 commit fe47c8b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Controller/Component/SecurityComponent.php
Expand Up @@ -236,7 +236,7 @@ protected function _authRequired(Controller $controller) {
if (in_array($this->request->params['action'], $requireAuth) || $requireAuth == array('*')) {
if (!isset($controller->request->data['_Token'])) {
if (!$this->blackHole($controller, 'auth')) {
return null;
return false;
}
}

Expand All @@ -250,12 +250,12 @@ protected function _authRequired(Controller $controller) {
!in_array($this->request->params['action'], $tData['allowedActions'])
) {
if (!$this->blackHole($controller, 'auth')) {
return null;
return false;
}
}
} else {
if (!$this->blackHole($controller, 'auth')) {
return null;
return false;
}
}
}
Expand Down

0 comments on commit fe47c8b

Please sign in to comment.