Commit 4e13aa27 authored by Curtis Conard's avatar Curtis Conard Committed by Johan Cwiklinski
Browse files

Don't display public ticket form if not enabled

fixes #8510
parent 6c16d9be
...@@ -33,6 +33,12 @@ ...@@ -33,6 +33,12 @@
include ('../inc/includes.php'); include ('../inc/includes.php');
global $CFG_GLPI;
if ((int)$CFG_GLPI['use_anonymous_helpdesk'] === 0) {
Html::redirect($CFG_GLPI["root_doc"] . "/front/central.php");
}
echo "<!DOCTYPE html>"; echo "<!DOCTYPE html>";
echo "<html lang=\"{$CFG_GLPI["languages"][$_SESSION['glpilanguage']][3]}\">"; echo "<html lang=\"{$CFG_GLPI["languages"][$_SESSION['glpilanguage']][3]}\">";
?> ?>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment