diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 24aba7fa9f..1318916671 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -77,7 +77,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(