Solved error 500 on resource exportation TICKETS #3604

This commit is contained in:
fermin831 2016-04-27 15:42:23 +02:00
parent 224907d481
commit 623318e485
1 changed files with 5 additions and 5 deletions

View File

@ -17,15 +17,13 @@
if (isset($_GET['get_ptr'])) {
if ($_GET['get_ptr'] == 1) {
session_start ();
session_write_close ();
$ownDir = dirname(__FILE__) . '/';
$ownDir = str_replace("\\", "/", $ownDir);
require_once ($ownDir.'../include/config.php');
if (! isset ($_SESSION["id_usuario"])) {
session_start ();
session_write_close ();
}
// Login check
if (!isset($_SESSION["id_usuario"])) {
$config['id_user'] = null;
@ -323,6 +321,8 @@ function get_xml_resource() {
function resource_exportation_extension_main() {
global $config;
check_login();
if (! check_acl ($config['id_user'], 0, "PM") && ! is_user_admin ($config['id_user'])) {
db_pandora_audit("ACL Violation", "Trying to access Setup Management");
require ("general/noaccess.php");