Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Deprecate SecurityComponent::requireAuth & SecurityComponent::require…
…Auth()

Backport of #8191
  • Loading branch information
ravage84 committed Feb 10, 2016
1 parent 86d7a80 commit 780b836
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Cake/Controller/Component/SecurityComponent.php
Expand Up @@ -92,6 +92,7 @@ class SecurityComponent extends Component {
*
* @var array
* @see SecurityComponent::requireAuth()
* @deprecated 2.8.1 This feature is confusing and not useful.
*/
public $requireAuth = array();

Expand Down Expand Up @@ -400,6 +401,7 @@ protected function _secureRequired(Controller $controller) {
*
* @param Controller $controller Instantiating controller
* @return bool|null True if authentication required
* @deprecated 2.8.1 This feature is confusing and not useful.
*/
protected function _authRequired(Controller $controller) {
if (is_array($this->requireAuth) && !empty($this->requireAuth) && !empty($this->request->data)) {
Expand Down

0 comments on commit 780b836

Please sign in to comment.