CommonDBTM::checkGlobal PHP Method

checkGlobal() public method

Check global right on an object
public checkGlobal ( $right ) : nothing
$right Right to check : c / r / w / d
return nothing
    function checkGlobal($right)
    {
        global $CFG_GLPI;
        if (!$this->canGlobal($right)) {
            // Gestion timeout session
            Session::redirectIfNotLoggedIn();
            Html::displayRightError();
        }
    }
CommonDBTM