From: erickson Date: Mon, 29 Jun 2009 02:39:55 +0000 (+0000) Subject: de-dupe the permission list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=db115b30c9cd7c8b44826418dfff28db6ed1b692;p=evergreen%2Ftadl.git de-dupe the permission list git-svn-id: svn://svn.open-ils.org/ILS/trunk@13476 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/patron/ue.js b/Open-ILS/xul/staff_client/server/patron/ue.js index fae0c4f219..6d8306409f 100644 --- a/Open-ILS/xul/staff_client/server/patron/ue.js +++ b/Open-ILS/xul/staff_client/server/patron/ue.js @@ -134,6 +134,13 @@ function uEditBuild() { 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();