Koha-clms/Koha/REST/Plugin
Martin Renvoize 1477ffc752
Bug 29523: Pass the logged user around and use for validating
In this patch I add 'user', containing the Koha::Patron object for the
logged in user in the params hash we pass around in to_api. I then use
that in a new 'is_accessible' method added to Koha::Patron.

The new method is really the equivilent of 'search_limited' in the plural
class and could perhaps be renamed 'is_limited' or something clearer for
the singular form 'is_filtered' or 'fitler_for_api' or something?

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-27 16:40:44 -03:00
..
Auth Bug 32178: (QA follow-up) Correct modules import 2022-11-18 12:04:32 -03:00
Exceptions.pm Bug 22678: Replace a few unneeded Koha::Logger calls 2022-10-24 14:37:03 -03:00
Objects.pm Bug 29523: Pass the logged user around and use for validating 2023-10-27 16:40:44 -03:00
Pagination.pm Bug 33080: Allow pagination to be built from stashed values 2023-03-10 12:04:06 -03:00
PluginRoutes.pm Bug 22678: Replace a few unneeded Koha::Logger calls 2022-10-24 14:37:03 -03:00
Query.pm Bug 33971: Remove x-koha-query header support 2023-07-03 10:35:06 -03:00