fix: [ACL] fixed pre-auth dynamic function calls

pull/9741/head
iglocska 2024-05-08 08:49:56 +02:00
parent 504aae680c
commit a5fa8f14bc
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -931,7 +931,7 @@ class ACLComponent extends Component
}
return true;
};
$this->dynamicChecks['password_forgotten_enabled'] = function (array $user) {
$this->dynamicChecks['password_forgotten_enabled'] = function ($user) {
if (empty(Configure::read('Security.allow_password_forgotten'))) {
throw new ForbiddenException('Password reset has been disabled on this instance.');
}