]> git.evergreen-ils.org Git - Evergreen.git/commit
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>
Thu, 25 May 2017 13:18:01 +0000 (09:18 -0400)
commitc1ac4845ba1bdebad903b650791d691694dd6c6d
treea618247b7dc0e8a87f51f48bbc6cfec633ef519b
parent58579e840f471109abae23b28aa85a7c35ff992b
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