示例#1
0
 /**
  * @since version 0.85
  *
  * @see commonDBTM::getRights()
  **/
 function getRights($interface = 'central')
 {
     $values = parent::getRights();
     unset($values[READ]);
     $values[self::READALL] = __('See all');
     $values[self::READMY] = __('See (author)');
     return $values;
 }
示例#2
0
 /**
  * @since version 0.85
  *
  * @see commonDBTM::getRights()
  **/
 function getRights($interface = 'central')
 {
     $values = parent::getRights();
     unset($values[READ]);
     $values[self::READMY] = __('See my ticket');
     //TRANS: short for : See tickets created by my groups
     $values[self::READGROUP] = array('short' => __('See group ticket'), 'long' => __('See tickets created by my groups'));
     if ($interface == 'central') {
         $values[self::READALL] = __('See all tickets');
         //TRANS: short for : See assigned tickets (group associated)
         $values[self::READASSIGN] = array('short' => __('See assigned'), 'long' => __('See assigned tickets'));
         //TRANS: short for : Assign a ticket
         $values[self::ASSIGN] = array('short' => __('Assign'), 'long' => __('Assign a ticket'));
         //TRANS: short for : Steal a ticket
         $values[self::STEAL] = array('short' => __('Steal'), 'long' => __('Steal a ticket'));
         //TRANS: short for : To be in charge of a ticket
         $values[self::OWN] = array('short' => __('Beeing in charge'), 'long' => __('To be in charge of a ticket'));
         $values[self::CHANGEPRIORITY] = __('Change the priority');
         $values[self::SURVEY] = array('short' => __('Approve solution/Reply survey (my ticket)'), 'long' => __('Approve solution and reply to survey for ticket created by me'));
     }
     if ($interface == 'helpdesk') {
         unset($values[UPDATE], $values[DELETE], $values[PURGE]);
     }
     return $values;
 }