[Koha-bugs] [Bug 30058] Add a Koha::Patrons method to filter by permissions

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Mar 14 19:09:02 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30058

--- Comment #3 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 131671
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131671&action=edit
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 at myacpl.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list