Bug 22529: Use new C4::Auth::haspermission from svc/members/search
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 6 May 2019 16:02:03 +0000 (11:02 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 4 Mar 2020 16:14:32 +0000 (16:14 +0000)
commit0359a04bf8086c2f17045c5c60d7b195ed77ec2b
tree4551749d2df9da6289533f154b31572388786e78
parentc16476af444bc529dbc6500978c63969de4d2b9c
Bug 22529: Use new C4::Auth::haspermission from svc/members/search

The svc/members/search script can be used to retrieve patrons with a
specific permission. This feature is only used once, to link patrons to
funds.
The code in the script is duplicated from what we have in
C4::Auth::haspermission, and it makes sense to clean it.

Test plan:
Create a fund and add users to this fund.
When you search for users you must only have a list of patrons with the
acquisition.order_manage permission.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works as described. No errors
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
svc/members/search