de-dupe the permission list
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Jun 2009 02:39:55 +0000 (02:39 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 29 Jun 2009 02:39:55 +0000 (02:39 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@13476 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/ue.js

index fae0c4f..6d83064 100644 (file)
@@ -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();