From e91f78bafe9997ae785e9bda8bac0615e8920ee1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 20 Feb 2023 12:29:32 -0700 Subject: [PATCH] permission exists xml_cdr_domain false --- app/xml_cdr/xml_cdr_statistics_inc.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index edbd8ac3a6..f5ebf91008 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -42,7 +42,7 @@ } //show all call detail records to admin and superadmin. for everyone else show only the call details for extensions assigned to them - if (permission_exists('xml_cdr_domain')) { + if (!permission_exists('xml_cdr_domain')) { // select caller_id_number, destination_number from v_xml_cdr where domain_uuid = '' // and (caller_id_number = '1001' or destination_number = '1001' or destination_number = '*991001') @@ -62,7 +62,6 @@ } } $sql_where .= ") "; - } else { //superadmin or admin