diff --git a/app/destinations/destinations.php b/app/destinations/destinations.php
index 5119f089c4..3f3810e471 100644
--- a/app/destinations/destinations.php
+++ b/app/destinations/destinations.php
@@ -233,7 +233,9 @@
echo th_order_by('destination_type', $text['label-destination_type'], $order_by, $order, $param);
echo th_order_by('destination_number', $text['label-destination_number'], $order_by, $order, $param);
echo "
". $text['label-detail_action']." | ";
- echo th_order_by('destination_context', $text['label-destination_context'], $order_by, $order, $param);
+ if (permission_exists("destination_context")) {
+ echo th_order_by('destination_context', $text['label-destination_context'], $order_by, $order, $param);
+ }
if (permission_exists('outbound_caller_id_select')) {
echo th_order_by('destination_caller_id_name', $text['label-destination_caller_id_name'], $order_by, $order, $param);
echo th_order_by('destination_caller_id_number', $text['label-destination_caller_id_number'], $order_by, $order, $param);
@@ -276,7 +278,9 @@
echo " ".escape(format_phone($row['destination_number']))." | \n";
echo " ".$action_name." | \n";
//echo " ".$row['destination_number_regex']." | \n";
- echo " ".escape($row['destination_context'])." | \n";
+ if (permission_exists("destination_context")) {
+ echo " ".escape($row['destination_context'])." | \n";
+ }
//echo " ".escape($row['fax_uuid'])." | \n";
if (permission_exists('outbound_caller_id_select')) {
echo " ".escape($row['destination_caller_id_name'])." | \n";