Update fax_file_delete.php

This commit is contained in:
FusionPBX 2018-12-17 18:36:09 -07:00 committed by GitHub
parent 7ce02c79fb
commit 4393fdd75d
1 changed files with 17 additions and 13 deletions

View File

@ -17,15 +17,19 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2015
Portions created by the Initial Developer are Copyright (C) 2015 - 2018
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
//includes
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('fax_file_delete')) {
//access granted
}
@ -46,7 +50,7 @@ else {
}
//validate the id
if (strlen($fax_file_uuid) > 0) {
if (is_uuid($fax_file_uuid)) {
//get the fax file data
$sql = "select * from v_fax_files ";
$sql .= "where fax_file_uuid = '".$fax_file_uuid."' ";