LP1183467 ACQ view funding source list permissions user/rsteed/lp1183467-funding-source-view-perms
authorBill Erickson <berick@esilibrary.com>
Thu, 23 May 2013 17:30:43 +0000 (13:30 -0400)
committerRemington Steed <rjs7@calvin.edu>
Mon, 12 Aug 2013 21:05:23 +0000 (17:05 -0400)
Limit the set of funding sources visible in the funding source list
interface by those the user has view permissions for, not just those the
user has edit permissions for.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Remington Steed <rjs7@calvin.edu>
Open-ILS/web/js/ui/default/acq/financial/list_funding_sources.js

index 4169bb5..274dee6 100644 (file)
@@ -30,7 +30,7 @@ function loadFSGrid() {
     fieldmapper.standardRequest(
         ['open-ils.acq', 'open-ils.acq.funding_source.org.retrieve'], {
             async: true,
-            params: [openils.User.authtoken, null, {flesh_summary:1}],
+            params: [openils.User.authtoken, null, {flesh_summary:1, limit_perm : 'VIEW_FUNDING_SOURCE'}],
             onresponse: function(r) { /* request object*/
                 if(fs = openils.Util.readResponse(r)) {
                     openils.acq.FundingSource.cache[fs.id()] = fs;