function checkRight($itemtype, $right)
{
global $CFG_GLPI;
if (!Session::haveRight($itemtype, $right)) {
// Check for session timeout
if (!isset($_SESSION['glpiID'])) {
Html::redirect($CFG_GLPI['root_doc'] . '/index.php');
exit;
}
Html::displayRightError();
}
}