Pman.Tab.Group_Rights.js
authorAlan Knowles <alan@akbkhome.com>
Mon, 8 Nov 2010 02:39:43 +0000 (10:39 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 8 Nov 2010 02:39:43 +0000 (10:39 +0800)
Pman.Tab.Group_Rights.js

index d8b0fee..7a9f210 100644 (file)
@@ -149,27 +149,14 @@ Pman.Tab.Group_Rights = {
                             
                             
                             // this needs to be generated by the modules..
-                            switch(v) {
-                        
-                                 
-                                  
-                                case   'Core.Person': return "Person";
-                                case   'Core.Offices': return "Offices";
-                                case   'Core.Companies': return "Companies";
-                                    
-                                case   'Core.Staff': return "Staff";
-                                case   'Core.Groups': return "Groups";
-                               
-                                case   'Core.Events':   return "Events";
-                                default : 
-                                    if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
-                                        return String.format('{0}',Pman.rightNames[v]);
-                                    }
-                                    
-                                    return '???' + v;
-                                     
+                  
+                            if (typeof(Pman.rightNames[v]) == 'string' && Pman.rightNames[v].length) {
+                                return String.format('{0}',Pman.rightNames[v]);
                             }
                             
+                            return '???' + v;
+                             
+                            
                             
                         }
                     },