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): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
require_once "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; require_once "root.php";
if (permission_exists('xml_cdr_view')) { require_once "resources/require.php";
//access granted require_once "resources/check_auth.php";
}
else { //check permissions
echo "access denied"; if (permission_exists('xml_cdr_view')) {
exit; //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 /*//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")) { if (!if_group("admin") && !if_group("superadmin")) {