]> git.koha-community.org Git - koha.git/commit
Bug 30058: Add Koha::Patrons->filter_by_have_subpermission
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 Feb 2022 12:41:47 +0000 (13:41 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 17 Mar 2022 21:22:56 +0000 (11:22 -1000)
commit9c6741cbe3cb00c724a2b2cf4c0efcc723484e87
tree2c36a90feccdbad1f6a932b1e049e9fec195b5c3
parent174adb2a3b43582388af93228b9acc81589baf2c
Bug 30058: Add Koha::Patrons->filter_by_have_subpermission

This method will allow to filter a patron set by a given subpermission.
It will be useful on bug 30055 where we want to display only patron
with suggestion or acquisition subpermission.
Note that it could be extended to allow several subpermissions, but we
don't need it so far.

Test plan:
  prove t/db_dependent/Koha/Patrons.t
must return green

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patrons.pm
t/db_dependent/Koha/Patrons.t