sync
[Pman.Admin] / Pman.Tab.PersonStaff.js
index d324c56..69e87f8 100644 (file)
@@ -13,7 +13,8 @@ Pman.on('beforeload', function()
         module : Pman.Tab.PersonStaff,
         region : 'center',
         parent : Pman.Tab.StaffMgr,
-        name : "Staff"
+        name : "Staff",
+        permname : 'Admin.Teams'
     });
    
     // where is this loaded into??? - by staffmgr - ** fix this...
@@ -25,7 +26,7 @@ Pman.on('beforeload', function()
 Pman.Tab.PersonStaff = new  Pman.Tab.PersonList({
     id : 'personstaff',
     type: 1,
-    permName : 'Admin.Teams', // or 'Core.Staff'
+    permName : 'Core.Staff', // or 'Core.Staff'
     getLeftSelections : function() {
         
         return Pman.Tab.Teams.grid ? Pman.Tab.Teams.grid.getSelectionModel().getSelections() : [];
@@ -64,7 +65,8 @@ Pman.Tab.PersonStaff = new  Pman.Tab.PersonList({
     },
     
     dialog: function () {
-        return Pman.Dialog.PersonStaff;
+        return Pman.Dialog.AdminPerson;
+        //return Pman.Dialog.PersonStaff;
     },
     bulkAdd : function() {
         //return Pman.Dialog.PersonBulkAdd