Update xml_cdr_statistics_inc.php

This commit is contained in:
FusionPBX 2019-04-19 11:02:58 -06:00 committed by GitHub
parent baaa3694a6
commit 7bea8d07be
1 changed files with 15 additions and 11 deletions

View File

@ -23,16 +23,20 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
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++;
}
?>
?>