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