Update var_delete.php

This commit is contained in:
FusionPBX 2018-03-25 10:04:16 -06:00 committed by GitHub
parent b8502e7f4f
commit 265c2a32fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 15 deletions

View File

@ -23,9 +23,12 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
//includes
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('var_delete')) {
//access granted
}
@ -54,7 +57,7 @@ else {
save_var_xml();
}
//redirect the browser
messages::add($text['message-delete']);
header("Location: vars.php");
return;