sync
[Pman.Admin] / Pman.Tab.Group_Members.js
index 48ee2ba..2965064 100644 (file)
@@ -25,6 +25,7 @@ Pman.Tab.Group_Members = new  Pman.Tab.PersonList({
     id : 'group_members',
     type: 0,
     title : "Staff Membership",
+    permName : 'Core.Staff',
     hideDelete: true, // as it's confusing..
     getLeftSelections : function() {
         return Pman.Tab.Groups.grid.getSelectionModel().getSelections();
@@ -43,6 +44,8 @@ Pman.Tab.Group_Members = new  Pman.Tab.PersonList({
         o.params['query[type]'] = this.type; // group type..
         o.params['query[person_internal_only_all]'] = 1;
         o.params['query[person_inactive]'] = this.showInActive ? 0  : 1;
+        o.params.company_id_comptype = 'OWNER';
+        o.params._with_group_membership = 1;
         
     },
     
@@ -52,6 +55,7 @@ Pman.Tab.Group_Members = new  Pman.Tab.PersonList({
             this.c_name(),
             this.c_office_id_name(),
             this.c_role(),
+            this.c_group_membership(),
             this.c_phone(),
             this.c_fax(),
             this.c_email(),
@@ -60,7 +64,8 @@ Pman.Tab.Group_Members = new  Pman.Tab.PersonList({
     },
     
     dialog: function () {
-        return Pman.Dialog.PersonStaff;
+        return Pman.Dialog.AdminPerson;
+        //return Pman.Dialog.PersonStaff;
     },
     bulkAdd : function() {
         //return Pman.Dialog.PersonBulkAdd