diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 0e04199b55..8b59848573 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -76,7 +76,7 @@ sub get { return try { my $patron_id = $c->param('patron_id'); - my $patron = $c->objects->find( Koha::Patrons->search_limited, $patron_id ); + my $patron = $c->objects->find( Koha::Patrons->new, $patron_id ); unless ($patron) { return $c->render(