LP1574141 - Allow invalidate for all patrons with the same contact. user/stompro/lp1574141_invalidate_by_contact_info
authorJosh Stompro <stomproj@larl.org>
Fri, 1 Jul 2016 20:29:42 +0000 (15:29 -0500)
committerJosh Stompro <stomproj@larl.org>
Fri, 1 Jul 2016 20:29:42 +0000 (15:29 -0500)
commitbdbea595f7d49ec08bf82ecaba6fa81833035f6b
tree5cce6a8f630afb9c44ff23f0235b00b382e5fb8d
parent167b0c93155a3f5e294254c6599db70ee8116c45
LP1574141 - Allow invalidate for all patrons with the same contact.

Teach the open-ils.actor.invalidate.* methods to allow invalidating
by the contact value, so all patrons with that contact value can have
it invalidated with one call.

This adds a new parameter for the contact value (email address, phone
number).  Then all customers with that value have it invalidated from
their account.

This somewhat simplifies writing a cli script for invalidating email
addresses since the script doesn't have to look up the user first.

The ability to invalidate all with the same contact value was already
there, it just wasn't exposed.

Testing:

1. Make sure the normal staff client invalidate buttons still work.
2. Use srfsh to try the call with a contact value.
  request open-ils.actor open-ils.actor.invalidate.email "<authkey>" "" "" "" "test@email.com"

Signed-off-by: Josh Stompro <stomproj@larl.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm