Koha-clms/Koha/REST
Tomas Cohen Arazi 7d38b15d65 Bug 29503: Make GET /patrons use Koha::Patrons->search_limited
This patch makes the controller method use Koha::Patrons->search_limited
so filters based on configuration and permissions apply when fetching
patrons.

To test:
1. Apply the regression tests patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Boo, you get more patrons than you should
3. Apply the patch
4. Repeat 2
=> SUCCESS: Yay! Things are filtered as expected (i.e. using
Koha::Patron->libraries_where_can_see_patrons)
5. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
2022-01-07 06:32:38 -05:00
..
Plugin Bug 28948: Teach objects.search about public requests 2021-10-28 17:32:34 +02:00
V1 Bug 29503: Make GET /patrons use Koha::Patrons->search_limited 2022-01-07 06:32:38 -05:00
V1.pm Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00