function getSpecificMassiveActions($checkitem = NULL) { // test if current profile has rights to unlock current item type if (Session::haveRight(static::$rightname, UNLOCK)) { return array('ObjectLock' . MassiveAction::CLASS_ACTION_SEPARATOR . 'unlock' => _x('button', 'Unlock items')); } return array(); }
/** * @see CommonDBTM::getSpecificMassiveActions() **/ function getSpecificMassiveActions($checkitem = NULL, $is_deleted = false) { $isadmin = static::canUpdate(); $actions = parent::getSpecificMassiveActions($checkitem); if ($isadmin && !$is_deleted) { $actions[__CLASS__ . MassiveAction::CLASS_ACTION_SEPARATOR . 'sendmail'] = _x('button', 'Send'); } return $actions; }