function checkGlobal($right) { global $CFG_GLPI; if (!$this->canGlobal($right)) { // Gestion timeout session Session::redirectIfNotLoggedIn(); Html::displayRightError(); } }