diff --git a/include/class.group.php b/include/class.group.php index b13082be9f24301e12bf298cac0d043f86b7f8d1..10a5eadafe9525f0c044c46d918924c00e2451cc 100644 --- a/include/class.group.php +++ b/include/class.group.php @@ -209,6 +209,8 @@ class Group { .', can_ban_emails='.db_input($vars['can_ban_emails']) .', can_manage_premade='.db_input($vars['can_manage_premade']) .', can_manage_faq='.db_input($vars['can_manage_faq']) + .', can_post_ticket_reply='.db_input($vars['can_post_ticket_reply']) + .', can_view_staff_stats='.db_input($vars['can_view_staff_stats']) .', notes='.db_input($vars['notes']); if($id) { diff --git a/include/class.staff.php b/include/class.staff.php index 9c6078c7f148e3a01612c05cac9c796422871269..102e79ecda4ae642dc7a777f75143b3148078a22 100644 --- a/include/class.staff.php +++ b/include/class.staff.php @@ -302,7 +302,7 @@ class Staff { function canEditTickets() { return ($this->ht['can_edit_tickets']); } - + function canDeleteTickets() { return ($this->ht['can_delete_tickets']); } @@ -311,6 +311,14 @@ class Staff { return ($this->ht['can_close_tickets']); } + function canPostReply() { + return ($this->ht['can_post_ticket_reply']); + } + + function canViewStaffStats() { + return ($this->ht['can_view_staff_stats']); + } + function canAssignTickets() { return ($this->ht['can_assign_tickets']); } diff --git a/include/staff/group.inc.php b/include/staff/group.inc.php index f2935d72e56237ce35dbc701f563fdeaf475a829..bfcc2a596a54850211a71ff72ea95cb698ecdb57 100644 --- a/include/staff/group.inc.php +++ b/include/staff/group.inc.php @@ -76,6 +76,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <i>Ability to edit tickets.</i> </td> </tr> + <tr><td>Can <b>Post Reply</b></td> + <td> + <input type="radio" name="can_post_ticket_reply" value="1" <?php echo $info['can_post_ticket_reply']?'checked="checked"':''; ?> />Yes + + <input type="radio" name="can_post_ticket_reply" value="0" <?php echo !$info['can_post_ticket_reply']?'checked="checked"':''; ?> />No + <i>Ability to post a ticket reply.</i> + </td> + </tr> <tr><td>Can <b>Close</b> Tickets</td> <td> <input type="radio" name="can_close_tickets" value="1" <?php echo $info['can_close_tickets']?'checked="checked"':''; ?> />Yes @@ -105,7 +113,7 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <input type="radio" name="can_delete_tickets" value="1" <?php echo $info['can_delete_tickets']?'checked="checked"':''; ?> />Yes <input type="radio" name="can_delete_tickets" value="0" <?php echo !$info['can_delete_tickets']?'checked="checked"':''; ?> />No - <i>Deleted tickets can't be recovered!</i> + <i>Ability to delete tickets (Deleted tickets can't be recovered!)</i> </td> </tr> <tr><td>Can Ban Emails</td> @@ -132,6 +140,14 @@ $info=Format::htmlchars(($errors && $_POST)?$_POST:$info); <i>Ability to add/update/disable/delete knowledgebase categories and FAQs.</i> </td> </tr> + <tr><td>Can View Staff Stats.</td> + <td> + <input type="radio" name="can_view_staff_stats" value="1" <?php echo $info['can_view_staff_stats']?'checked="checked"':''; ?> />Yes + + <input type="radio" name="can_view_staff_stats" value="0" <?php echo !$info['can_view_staff_stats']?'checked="checked"':''; ?> />No + <i>Ability to view stats of other staff members in allowed departments.</i> + </td> + </tr> <tr> <th colspan="2"> <em><strong>Department Access</strong>: Check all departments the group members are allowed to access. <a id="selectAll" href="#deptckb">Select All</a> <a id="selectNone" href="#deptckb">Select None</a> </em>