Call Recordings: Adjustments.

This commit is contained in:
Nate
2019-12-19 12:04:16 -07:00
parent 463ce371d6
commit 72feb7df7b
4 changed files with 60 additions and 49 deletions
+8 -4
View File
@@ -30,7 +30,7 @@
//check permisions
require_once "resources/check_auth.php";
if (permission_exists('call_recording_view')) {
if (permission_exists('call_recording_play') || permission_exists('call_recording_download')) {
//access granted
}
else {
@@ -39,7 +39,11 @@
}
//download
$obj = new call_recordings;
$obj->download();
if (is_uuid($_GET['id'])) {
$obj = new call_recordings;
$obj->recording_uuid = $_GET['id'];
$obj->binary = isset($_GET['binary']) ? true : false;
$obj->download();
}
?>
?>