diff --git a/admin/admin_ticket.php b/admin/admin_ticket.php index c9b89f35..9720c1d9 100644 --- a/admin/admin_ticket.php +++ b/admin/admin_ticket.php @@ -859,7 +859,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php'); /* Do we need or have any canned responses? */ $can_options = hesk_printCanned(); - echo hesk_getAdminButtons(); + echo hesk_getAdminButtons(0,1,$isManager); ?>
@@ -1273,7 +1273,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
:
@@ -1452,7 +1452,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
@@ -1635,7 +1635,7 @@ function hesk_getFontAwesomeIconForFileExtension($fileExtension)
}
-function hesk_getAdminButtons($reply=0,$white=1)
+function hesk_getAdminButtons($reply=0,$white=1,$isManager)
{
global $hesk_settings, $hesklang, $ticket, $reply, $trackingID, $can_edit, $can_archive, $can_delete;
@@ -1686,7 +1686,8 @@ function hesk_getAdminButtons($reply=0,$white=1)
if ($can_edit)
{
$tmp = $reply ? '&reply='.$reply['id'] : '';
- $options .= ' '.$hesklang['edtt'].' ';
+ $mgr = $isManager ? '&isManager=true' : '';
+ $options .= ' '.$hesklang['edtt'].' ';
}
@@ -1716,7 +1717,7 @@ function hesk_getAdminButtons($reply=0,$white=1)
} // END hesk_getAdminButtons()
-function hesk_getAdminButtonsInTicket($reply=0,$white=1)
+function hesk_getAdminButtonsInTicket($reply=0,$white=1,$isManager=false)
{
global $hesk_settings, $hesklang, $ticket, $reply, $trackingID, $can_edit, $can_archive, $can_delete;
@@ -1730,7 +1731,8 @@ function hesk_getAdminButtonsInTicket($reply=0,$white=1)
if ($can_edit)
{
$tmp = $reply ? '&reply='.$reply['id'] : '';
- $options .= ' '.$hesklang['edtt'].' ';
+ $mgr = $isManager ? '&isManager=true' : '';
+ $options .= ' '.$hesklang['edtt'].' ';
}
@@ -1841,7 +1843,7 @@ function print_form()
} // End print_form()
-function hesk_printTicketReplies() {
+function hesk_printTicketReplies($isManager) {
global $hesklang, $hesk_settings, $result, $reply;
$i = $hesk_settings['new_top'] ? 0 : 1;
@@ -1863,7 +1865,7 @@ function hesk_printTicketReplies() {
: