. -------------------------------------------------------------------------- */ if (!defined('GLPI_ROOT')) { die("Sorry. You can't access directly to this file"); } class PluginProcessmakerProfile extends CommonDBTM { /** * Summary of getAllRights * @return array[] */ static function getAllRights() { $rights = [ ['itemtype' => 'PluginProcessmakerConfig', 'label' => __('Process configuration', 'processmaker'), 'field' => 'plugin_processmaker_config', 'rights' => [READ => __('Read'), UPDATE => __('Update')]], ['itemtype' => 'PluginProcessmakerConfig', 'label' => __('Cases', 'processmaker'), 'field' => 'plugin_processmaker_case', 'rights' => [READ => __('Read'), CANCEL => __('Cancel', 'processmaker'), DELETE => __('Delete'), ADHOC_REASSIGN => __('Ad Hoc user re-assign', 'processmaker')]] ]; return $rights; } /** * Summary of showForm * @param mixed $ID * @param mixed $openform * @param mixed $closeform * @return bool */ function showForm($ID = 0, $openform = true, $closeform = true) { if (!Session::haveRight("profile", READ)) { return false; } $canedit = Session::haveRight("profile", UPDATE); $prof = new Profile(); if ($ID) { $prof->getFromDB($ID); } echo "