diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm index 32dab06d4b..2777aa076e 100644 --- a/Koha/REST/Plugin/Objects.pm +++ b/Koha/REST/Plugin/Objects.pm @@ -86,6 +86,9 @@ The result object can then be used for further processing. } ); + $result_set = $result_set->search_limited + if $result_set->can('search_limited'); + my $object = $result_set->find( $id, $attributes ); return $object;