diff --git a/app/extensions/extensions.php b/app/extensions/extensions.php index 3e6fd83441..aea7b296d5 100644 --- a/app/extensions/extensions.php +++ b/app/extensions/extensions.php @@ -255,7 +255,9 @@ } echo th_order_by('extension', $text['label-extension'], $order_by, $order); echo th_order_by('effective_caller_id_name', $text['label-effective_cid_name'], $order_by, $order, null, "class='hide-xs'"); - echo th_order_by('outbound_caller_id_name', $text['label-outbound_cid_name'], $order_by, $order, null, "class='hide-sm-dn'"); + if (permission_exists("outbound_caller_id_name")) { + echo th_order_by('outbound_caller_id_name', $text['label-outbound_cid_name'], $order_by, $order, null, "class='hide-sm-dn'"); + } echo th_order_by('call_group', $text['label-call_group'], $order_by, $order); if (permission_exists("extension_user_context")) { echo th_order_by('user_context', $text['label-user_context'], $order_by, $order); @@ -296,7 +298,9 @@ echo " \n"; echo " ".escape($row['effective_caller_id_name'])." \n"; - echo " ".escape($row['outbound_caller_id_name'])." \n"; + if (permission_exists("outbound_caller_id_name")) { + echo " ".escape($row['outbound_caller_id_name'])." \n"; + } echo " ".escape($row['call_group'])." \n"; if (permission_exists("extension_user_context")) { echo " ".escape($row['user_context'])."\n"; @@ -358,4 +362,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>