Make Delete User failure overridable collab/phasefx/prevent_user_delete_with_open_xacts
authorJason Etheridge <jason@esilibrary.com>
Wed, 11 Jan 2012 03:15:31 +0000 (22:15 -0500)
committerJason Etheridge <jason@esilibrary.com>
Wed, 11 Jan 2012 03:18:25 +0000 (22:18 -0500)
commitd8628fd6a202ad378be706e4bbedf59496a653ea
tree9e3948acc2ee5d09db9337902f8df7e5774b6f17
parentade38c34953e6f32f81b4a71cc774226b6f22b26
Make Delete User failure overridable

Make mrpeter's new ACTOR_USER_DELETE_OPEN_XACTS event overridable to preserve
existing functionality (the delete user code will wipe out all transactions if
allowed to, and will leave copy statuses as "Checked Out" if needed, which is
okay in EG even if there aren't corresponding circ records--some libraries
migrate data like this if the information available is sparse).

So if you want to be able to do this without a super user, you'll need to create
an ACTOR_USER_DELETE_OPEN_XACTS.override perm and assign it to perm groups
and/or users.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm
Open-ILS/xul/staff_client/server/locale/en-US/patron.properties
Open-ILS/xul/staff_client/server/patron/display.js