diff --git a/app/xml_cdr/xml_cdr_archive.php b/app/xml_cdr/xml_cdr_archive.php index 5e642dcc79..9068264951 100644 --- a/app/xml_cdr/xml_cdr_archive.php +++ b/app/xml_cdr/xml_cdr_archive.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2018 + Portions created by the Initial Developer are Copyright (C) 2008-2019 the Initial Developer. All Rights Reserved. Contributor(s): @@ -380,7 +380,7 @@ echo th_order_by('caller_destination', $text['label-caller_destination'], $order_by, $order, null, null, $param); } echo th_order_by('destination_number', $text['label-destination'], $order_by, $order, null, null, $param); - if (permission_exists('recording_play') || permission_exists('recording_download')) { + if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) { echo "".$text['label-recording']."\n"; $col_count++; } @@ -466,7 +466,7 @@ $seconds = ($row['hangup_cause']=="ORIGINATOR_CANCEL") ? $row['duration'] : round(($row['billmsec'] / 1000), 0, PHP_ROUND_HALF_UP); //determine recording properties - if (permission_exists('recording_play') || permission_exists('recording_download')) { + if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) { $record_path = $row['record_path']; $record_name = $row['record_name']; //$record_name = strtolower(pathinfo($tmp_name, PATHINFO_BASENAME)); @@ -479,7 +479,7 @@ } //recording playback - if (permission_exists('recording_play') && $record_path != '') { + if (permission_exists('xml_cdr_recording_play') && $record_path != '') { echo "\n"; } @@ -566,17 +566,17 @@ echo " \n"; echo " \n"; //recording - if (permission_exists('recording_play') || permission_exists('recording_download')) { + if (permission_exists('xml_cdr_recording_play') || permission_exists('xml_cdr_recording_download')) { if ($record_path != '' && file_exists($record_path.'/'.$record_name)) { echo " "; - if (permission_exists('recording_play')) { + if (permission_exists('xml_cdr_recording_play')) { echo ""; echo "".$v_link_label_play.""; } else { - echo "don't have recording_play permission "; + echo "don't have xml_cdr_recording_play permission "; } - if (permission_exists('recording_download')) { + if (permission_exists('xml_cdr_recording_download')) { echo "".$v_link_label_download.""; } echo " \n"; @@ -722,4 +722,4 @@ //show the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>