Pman.Tab.Group_Rights.js
[Pman.Admin] / Pman.Tab.Group_Rights.js
index 9ca1787..7a9f210 100644 (file)
@@ -149,31 +149,14 @@ Pman.Tab.Group_Rights = {
                             
                             
                             // this needs to be generated by the modules..
-                            switch(v) {
-                        
-                                 
-                                case   'Fax.Fax': return "Fax";
-                                case   'Fax.Fax_To_Company': return "Send Faxes To Companies";
-                                case   'Timesheet.Timesheet': return "Timesheet";
-                                
-                                case   'Admin.Admin_Tab':   return "Admin Tab";  
-                                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;
+                             
+                            
                             
                         }
                     },