[open-ils-commits] r13478 - branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Jun 28 22:42:40 EDT 2009
Author: erickson
Date: 2009-06-28 22:42:38 -0400 (Sun, 28 Jun 2009)
New Revision: 13478
Modified:
branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
Log:
de-dupe the permission list
Modified: branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js
===================================================================
--- branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js 2009-06-29 02:42:29 UTC (rev 13477)
+++ branches/rel_1_6_0/Open-ILS/xul/staff_client/server/patron/ue.js 2009-06-29 02:42:38 UTC (rev 13478)
@@ -134,6 +134,13 @@
var groups = uEditFetchGroups();
buildAppPermList(myPerms, groups);
+ // de-dupe the permission list
+ var perms = [];
+ for(var p in myPerms)
+ if(perms.indexOf(myPerms[p]) == -1)
+ perms.push(myPerms[p]);
+ myPerms = perms;
+
fetchHighestPermOrgs( SESSION, USER.id(), myPerms );
uEditBuildLibSelector();
More information about the open-ils-commits
mailing list