mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #8227 from ravage84/2.x-requireauth-deprecation
Deprecate SecurityComponent::requireAuth & SecurityComponent::require…
This commit is contained in:
commit
ddc71efb54
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
||||
|
@ -400,6 +401,7 @@ class SecurityComponent extends Component {
|
|||
*
|
||||
* @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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue