Update call_center_queue_delete.php
This commit is contained in:
parent
cc873c7c13
commit
16eb07cfef
|
|
@ -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) 2008-2012
|
||||
Portions created by the Initial Developer are Copyright (C) 2008-2016
|
||||
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('call_center_queue_delete')) {
|
||||
//access granted
|
||||
}
|
||||
|
|
@ -60,7 +64,7 @@ else {
|
|||
//delete the tier from the database
|
||||
$sql = "delete from v_call_center_tiers ";
|
||||
$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);
|
||||
unset($sql);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue