Merge branch '2.4' into develop

feature/event-view-collapsible-objects
Alexandre Dulaunoy 2024-05-08 09:36:35 +02:00
commit 52909eeada
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 2 deletions

View File

@ -919,7 +919,7 @@ class ACLComponent extends Component
}
return true;
};
$this->dynamicChecks['password_change_enabled'] = function (array $user) {
$this->dynamicChecks['password_change_enabled'] = function ($user) {
if (Configure::read('MISP.disable_user_password_change')) {
throw new ForbiddenException('User password change has been disabled on this instance.');
}
@ -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.');
}