From: erickson Date: Fri, 14 Nov 2008 20:04:56 +0000 (+0000) Subject: added VIEW_BILLING_TYPE perm awareness X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b910387aeecc0c3e23e6d5263e547ccb4a8e7053;p=Evergreen.git added VIEW_BILLING_TYPE perm awareness git-svn-id: svn://svn.open-ils.org/ILS/trunk@11193 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/examples/fm_IDL.xml b/Open-ILS/examples/fm_IDL.xml index 81b666bc2d..ebb6c6bad2 100644 --- a/Open-ILS/examples/fm_IDL.xml +++ b/Open-ILS/examples/fm_IDL.xml @@ -3448,7 +3448,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA - + diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm index 1d888c4a81..93db5b5a06 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Circ.pm @@ -91,6 +91,7 @@ sub ranged_billing_types { my($self, $conn, $auth, $org_id, $depth) = @_; my $e = new_editor(authtoken => $auth); return $e->event unless $e->checkauth; + return $e->event unless $e->allowed('VIEW_BILLING_TYPE', $org_id); return $e->search_config_billing_type( {owner => $U->get_org_full_path($org_id, $depth)}); }