Update dialplan_detail_delete.php
This commit is contained in:
@@ -23,20 +23,24 @@
|
|||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
include "root.php";
|
|
||||||
require_once "resources/require.php";
|
//includes
|
||||||
require_once "resources/check_auth.php";
|
include "root.php";
|
||||||
if (permission_exists('dialplan_delete')
|
require_once "resources/require.php";
|
||||||
|| permission_exists('inbound_route_delete')
|
require_once "resources/check_auth.php";
|
||||||
|| permission_exists('outbound_route_delete')
|
|
||||||
|| permission_exists('fifo_delete')
|
//check permissions
|
||||||
|| permission_exists('time_condition_delete')) {
|
if (permission_exists('dialplan_delete')
|
||||||
//access granted
|
|| permission_exists('inbound_route_delete')
|
||||||
}
|
|| permission_exists('outbound_route_delete')
|
||||||
else {
|
|| permission_exists('fifo_delete')
|
||||||
echo "access denied";
|
|| permission_exists('time_condition_delete')) {
|
||||||
exit;
|
//access granted
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
echo "access denied";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
//add multi-lingual support
|
//add multi-lingual support
|
||||||
$language = new text;
|
$language = new text;
|
||||||
@@ -76,4 +80,4 @@ else {
|
|||||||
header("Location: dialplan_edit.php?id=".$dialplan_uuid.(($app_uuid != '') ? "&app_uuid=".$app_uuid : null));
|
header("Location: dialplan_edit.php?id=".$dialplan_uuid.(($app_uuid != '') ? "&app_uuid=".$app_uuid : null));
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user