From: Thomas Berezansky Date: Mon, 29 Aug 2011 15:36:21 +0000 (-0400) Subject: Remove org unit limiters for viewing penalties X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fcollab%2Fdyrcona%2Fpenalties_view_all_org_units;p=working%2FEvergreen.git Remove org unit limiters for viewing penalties If they can block circ anywhere staff should be able to see them! Signed-off-by: Thomas Berezansky Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm index 1f0fa939a3..aed94f3d47 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Actor.pm @@ -2924,7 +2924,7 @@ sub new_flesh_user { {stop_date => undef}, {stop_date => {'>' => 'now'}} ], - org_unit => $U->get_org_ancestors($e->requestor->ws_ou) + #org_unit => $U->get_org_ancestors($e->requestor->ws_ou) }, { flesh => 1, flesh_fields => {ausp => ['standing_penalty']} diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Penalty.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Penalty.pm index f259345da4..69908288e3 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Penalty.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Penalty.pm @@ -109,7 +109,7 @@ sub retrieve_usr_penalties { return $e->search_actor_user_standing_penalty([ { usr => $user_id, - org_unit => $U->get_org_ancestors($context_org), + #org_unit => $U->get_org_ancestors($context_org), '-or' => [ {stop_date => undef}, {stop_date => {'>' => 'now'}}