From 7bea8d07be62f0c62b3ac9f99a0f4e5a2a86dfe9 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 19 Apr 2019 11:02:58 -0600 Subject: [PATCH] Update xml_cdr_statistics_inc.php --- app/xml_cdr/xml_cdr_statistics_inc.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index 7b79cda488..fc3446ae3b 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -23,16 +23,20 @@ Contributor(s): Mark J Crane */ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('xml_cdr_view')) { - //access granted -} -else { - echo "access denied"; - exit; -} + +//includes + require_once "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('xml_cdr_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } /*//show all call detail records to admin and superadmin. for everyone else show only the call details for extensions assigned to them if (!if_group("admin") && !if_group("superadmin")) { @@ -395,4 +399,4 @@ else { if ($x == $hours) { break; } $x++; } -?> \ No newline at end of file +?>