From b3ec611f60bc8bb3a6d5639b487658205d73a433 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 30 Apr 2025 09:45:27 -0600 Subject: [PATCH] Show the hostname only to the superadmin group --- app/fax_queue/fax_queue.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/fax_queue/fax_queue.php b/app/fax_queue/fax_queue.php index 1822255f86..45ec11e9b0 100644 --- a/app/fax_queue/fax_queue.php +++ b/app/fax_queue/fax_queue.php @@ -313,13 +313,15 @@ //echo th_order_by('fax_date', $text['label-fax_date'], $order_by, $order); echo "".$text['label-date']."\n"; echo "".$text['label-time']."\n"; - echo th_order_by('hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-md-dn'"); + if ($permission['fax_queue_all']) { + echo th_order_by('hostname', $text['label-hostname'], $order_by, $order, null, "class='hide-md-dn'"); + } echo th_order_by('fax_caller_id_name', $text['label-fax_caller_id_name'], $order_by, $order, null, "class='hide-md-dn'"); echo th_order_by('fax_caller_id_number', $text['label-fax_caller_id_number'], $order_by, $order); echo th_order_by('fax_number', $text['label-fax_number'], $order_by, $order); echo th_order_by('fax_email_address', $text['label-fax_email_address'], $order_by, $order); echo th_order_by('insert_user', $text['label-insert_user'], $order_by, $order); -// echo th_order_by('fax_file', $text['label-fax_file'], $order_by, $order); + //echo th_order_by('fax_file', $text['label-fax_file'], $order_by, $order); echo th_order_by('fax_status', $text['label-fax_status'], $order_by, $order); echo th_order_by('fax_retry_date', $text['label-fax_retry_date'], $order_by, $order); echo th_order_by('fax_notify_date', $text['label-fax_notify_date'], $order_by, $order); @@ -332,6 +334,7 @@ if (!empty($fax_queue)) { $x = 0; foreach ($fax_queue as $row) { + $list_row_url = ''; if ($permission['fax_queue_edit']) { $list_row_url = "fax_queue_edit.php?id=".urlencode($row['fax_queue_uuid']); } @@ -347,13 +350,15 @@ } echo " ".escape($row['fax_date_formatted'])."\n"; echo " ".escape($row['fax_time_formatted'])."\n"; - echo " ".escape($row['hostname'])."\n"; + if ($permission['fax_queue_all']) { + echo " ".escape($row['hostname'])."\n"; + } echo " ".escape($row['fax_caller_id_name'])."\n"; echo " ".escape($row['fax_caller_id_number'])."\n"; echo " ".escape($row['fax_number'])."\n"; echo " ".escape(str_replace(',', ' ', $row['fax_email_address'] ?? ''))."\n"; echo " ".escape($row['insert_user']) ."\n"; -// echo " ".escape($row['fax_file'])."\n"; + //echo " ".escape($row['fax_file'])."\n"; echo " ".ucwords($text['label-'.$row['fax_status']])."\n"; echo " ".escape($row['fax_retry_date_formatted'])." ".escape($row['fax_retry_time_formatted'])."\n"; echo " ".escape($row['fax_notify_date_formatted'])." ".escape($row['fax_notify_time_formatted'])."\n";