Add a permission check for xml_cdr_export_csv and xml_cdr_export_pdf to the CDR export.

This commit is contained in:
FusionPBX 2021-01-18 00:00:18 -07:00 committed by GitHub
parent 1b2812976d
commit 246ffb3e12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -51,7 +51,7 @@
$export_format = $_REQUEST['export_format'];
//export the csv
if ($export_format == 'csv') {
if (permission_exists('xml_cdr_export_csv') && $export_format == 'csv') {
//define file name
if ($_GET['show'] == 'all' && permission_exists('xml_cdr_all')) {
@ -104,7 +104,7 @@
}
//export as a PDF
if ($export_format == 'pdf') {
if (permission_exists('xml_cdr_export_pdf') && $export_format == 'pdf') {
//load pdf libraries
require_once "resources/tcpdf/tcpdf.php";