mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-05 03:03:49 +00:00
Update bridge_delete.php
This commit is contained in:
@@ -27,13 +27,23 @@
|
||||
//includes
|
||||
require_once "root.php";
|
||||
require_once "resources/require.php";
|
||||
require_once "resources/check_auth.php";
|
||||
|
||||
//check permissions
|
||||
if (permission_exists('bridge_delete')) {
|
||||
//access granted
|
||||
}
|
||||
else {
|
||||
echo "access denied";
|
||||
exit;
|
||||
}
|
||||
|
||||
//add multi-lingual support
|
||||
$language = new text;
|
||||
$text = $language->get();
|
||||
|
||||
//delete the data
|
||||
if (is_uuid($_GET["id"]) && permission_exists('bridge_delete')) {
|
||||
if (is_uuid($_GET["id"])) {
|
||||
|
||||
//get the id
|
||||
$bridge_uuid = $_GET["id"];
|
||||
|
||||
Reference in New Issue
Block a user