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