mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Call Recordings - List: Remove unnecessary code.
This commit is contained in:
@@ -53,31 +53,12 @@
|
||||
//process the http post data by action
|
||||
if ($action != '' && is_array($call_recordings) && @sizeof($call_recordings) != 0) {
|
||||
switch ($action) {
|
||||
case 'copy':
|
||||
if (permission_exists('call_recording_add')) {
|
||||
$obj = new call_recordings;
|
||||
$obj->copy($call_recordings);
|
||||
}
|
||||
break;
|
||||
case 'toggle':
|
||||
if (permission_exists('call_recording_edit')) {
|
||||
$obj = new call_recordings;
|
||||
$obj->toggle($call_recordings);
|
||||
}
|
||||
break;
|
||||
case 'delete':
|
||||
if (permission_exists('call_recording_delete')) {
|
||||
$obj = new call_recordings;
|
||||
$obj->delete($call_recordings);
|
||||
}
|
||||
break;
|
||||
case 'download':
|
||||
if (permission_exists('call_recording_download_add')) {
|
||||
$obj = new call_recording_downloads;
|
||||
$obj->save($call_recordings);
|
||||
header("Location: ".PROJECT_PATH."/app/call_recording_downloads/call_recording_downloads.php");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
//redirect the user
|
||||
|
||||
Reference in New Issue
Block a user