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";