diff --git a/Koha/REST/V1/Patrons.pm b/Koha/REST/V1/Patrons.pm index 44cff84ab1..663f092aee 100644 --- a/Koha/REST/V1/Patrons.pm +++ b/Koha/REST/V1/Patrons.pm @@ -50,7 +50,7 @@ sub list { $query->{debarred} = { '!=' => undef } if $restricted; - my $patrons_rs = Koha::Patrons->search_limited($query); + my $patrons_rs = Koha::Patrons->search($query); my $patrons = $c->objects->search( $patrons_rs ); return $c->render(