[open-ils-commits] r10443 -
trunk/Open-ILS/xul/staff_client/server/admin
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 25 17:57:39 EDT 2008
Author: erickson
Date: 2008-08-25 17:57:34 -0400 (Mon, 25 Aug 2008)
New Revision: 10443
Modified:
trunk/Open-ILS/xul/staff_client/server/admin/adminlib.js
Log:
added method to grab work_ou related permissions
Modified: trunk/Open-ILS/xul/staff_client/server/admin/adminlib.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/adminlib.js 2008-08-25 21:57:06 UTC (rev 10442)
+++ trunk/Open-ILS/xul/staff_client/server/admin/adminlib.js 2008-08-25 21:57:34 UTC (rev 10443)
@@ -2,6 +2,7 @@
var SESSION;
var PERMS = {};
var ORG_CACHE = {};
+var OILS_WORK_PERMS = {};
var XML_ELEMENT_NODE = 1;
var XML_TEXT_NODE = 3;
@@ -58,6 +59,19 @@
return orgs;
}
+function fetchHighestWorkPermOrgs(session, userId, perms) {
+ for(var i = 0; i < perms.length; i++) {
+ var perm = perms[i];
+ var req = new RemoteRequest(
+ 'open-ils.actor',
+ 'open-ils.actor.user.work_perm.highest_org_set',
+ session, perm);
+ req.send(true);
+ OILS_WORK_PERMS[perm] = req.getResultObject();
+ }
+}
+
+
/* offset is the depth of the highest org
in the tree we're building
*/
More information about the open-ils-commits
mailing list