Update call_center_queue_delete.php

This commit is contained in:
FusionPBX
2016-10-05 07:25:25 -06:00
committed by GitHub
parent cc873c7c13
commit 16eb07cfef
@@ -17,15 +17,19 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012 Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
//includes
require_once "root.php"; require_once "root.php";
require_once "resources/require.php"; require_once "resources/require.php";
require_once "resources/check_auth.php"; require_once "resources/check_auth.php";
//check permissions
if (permission_exists('call_center_queue_delete')) { if (permission_exists('call_center_queue_delete')) {
//access granted //access granted
} }
@@ -60,7 +64,7 @@ else {
//delete the tier from the database //delete the tier from the database
$sql = "delete from v_call_center_tiers "; $sql = "delete from v_call_center_tiers ";
$sql .= "where domain_uuid = '$domain_uuid' "; $sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= "and queue_name = '$queue_name' "; $sql .= "and (call_center_queue_uuid = '$id' or queue_name = '".$queue_name."@".$_SESSION['domain_name']."') ";
$db->query($sql); $db->query($sql);
unset($sql); unset($sql);