static function isAllowedStatus($old, $new)
{
if (isset($_SESSION['glpiactiveprofile'][static::STATUS_MATRIX_FIELD][$old][$new]) && !$_SESSION['glpiactiveprofile'][static::STATUS_MATRIX_FIELD][$old][$new]) {
return false;
}
if (array_key_exists(static::STATUS_MATRIX_FIELD, $_SESSION['glpiactiveprofile'])) {
// maybe not set for post-only
return true;
}
return false;
}