@@ -, +, @@ --- Koha/REST/V1/Patrons/Password.pm | 8 -------- t/db_dependent/api/v1/patrons_password.t | 3 +-- 2 files changed, 1 insertion(+), 10 deletions(-) --- a/Koha/REST/V1/Patrons/Password.pm +++ a/Koha/REST/V1/Patrons/Password.pm @@ -90,14 +90,6 @@ sub set_public { my $body = $c->validation->param('body'); my $patron_id = $c->validation->param('patron_id'); - # short-circuit early - unless ( C4::Context->preference('OpacPasswordChange') ) { - return $c->render( - status => 403, - openapi => { error => "Configuration prevents password changes by unprivileged users" } - ); - } - my $user = $c->stash('koha.user'); unless ( $user->borrowernumber == $patron_id ) { --- a/t/db_dependent/api/v1/patrons_password.t +++ a/t/db_dependent/api/v1/patrons_password.t @@ -158,8 +158,7 @@ subtest 'set_public() (unprivileged user tests)' => sub { } )->status_is(403)->json_is( { - error => - 'Configuration prevents password changes by unprivileged users' + error => 'Changing password is forbidden' } ); --