Update call_block_edit.php (#5327)

This commit is contained in:
agree 2020-07-02 19:55:10 -04:00 committed by GitHub
parent f845711cda
commit 237551e780
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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