Add and use a patron search that overrides opt-in invisibility
authorDan Scott <dscott@laurentian.ca>
Wed, 14 Sep 2011 20:02:14 +0000 (16:02 -0400)
committerDan Scott <dscott@laurentian.ca>
Tue, 7 May 2013 18:56:48 +0000 (14:56 -0400)
commit5895f07cd361c1a24370bea010b0240d1967f000
tree460bb9cdfa2f702c5aba0d4a1bcfd65d03b58f2b
parentfdbe2e8a20b9c0adcc6cd85c131f6ad8f3d6c62a
Add and use a patron search that overrides opt-in invisibility

Something like this is required for API calls that need to operate
against a number of libraries in a given instance that are using opt-in;
otherwise, attempts to search for users will fail and you may end up
creating near-duplicates etc.

The implementation adds an
open-ils.actor.search.patron.advanced.opt_in_override method to
open-ils.actor, which, if invoked, checks to see if the caller has the
OPT_IN_OVERRIDE permission. If so, then the crazy_search ignores the
normal opt-in limits and searches all pertinent users in the database.

As a global permission, OPT_IN_OVERRIDE is a blunt instrument. Others
might want to put together a more refined version that uses OU depths to
define boundaries.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Conflicts:
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/actor.pm