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 "
\n"; - echo " \n"; + if (permission_exists("outbound_caller_id_name")) { + echo " \n"; + } echo "