LP1574141 - Allow invalidate for all patrons with the same contact.
authorJosh Stompro <stomproj@larl.org>
Fri, 1 Jul 2016 20:29:42 +0000 (15:29 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 19 May 2017 02:17:03 +0000 (22:17 -0400)
commit77ddbc600feb9334e3c722c1be236305ad92a715
tree0c3c2511018e5cf11d8808aeb113468d4d145b52
parent914482983aa807ebcddaf7574413ed72538a4619
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>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm