From 237551e78042363591ca2e4488766300483f9cc3 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Thu, 2 Jul 2020 19:55:10 -0400 Subject: [PATCH] Update call_block_edit.php (#5327) --- app/call_block/call_block_edit.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/call_block/call_block_edit.php b/app/call_block/call_block_edit.php index 53b4160424..33e6581b43 100644 --- a/app/call_block/call_block_edit.php +++ b/app/call_block/call_block_edit.php @@ -253,7 +253,7 @@ } //get the extensions - if (permission_exists('call_block_all')) { + if (permission_exists('call_block_all') || permission_exists('call_block_extension')) { $sql = "select extension_uuid, extension, number_alias, user_context, description from v_extensions "; $sql .= "where domain_uuid = :domain_uuid "; $sql .= "and enabled = 'true' "; @@ -263,7 +263,7 @@ $extensions = $database->select($sql, $parameters); } -//get the extensions +//get the voicemails $sql = "select voicemail_uuid, voicemail_id, voicemail_description "; $sql .= "from v_voicemails "; $sql .= "where domain_uuid = :domain_uuid ";