. * --------------------------------------------------------------------- */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access this file directly"); } /** * ChangeCost Class * * @since 0.85 **/ class ChangeCost extends CommonITILCost { // From CommonDBChild static public $itemtype = 'Change'; static public $items_id = 'changes_id'; static function canCreate() { return Session::haveRight('change', UPDATE); } static function canView() { return Session::haveRightsOr('change', [Change::READALL, Change::READMY]); } static function canUpdate() { return Session::haveRight('change', UPDATE); } }