[Rt-devel] Reply to a ticket only if you own it.

Jonathan Scher js at oxado.com
Mon Mar 19 12:37:46 EDT 2007


Hello!

In order to avoid two agents to answer concurrently to a customer, I 
would like to show the 'Reply' button - on rt/Ticket/Display.html page 
-  only if the agent already own it. A way to do it is to change a line 
on share/html/Ticket/Elements/Tabs :
145
< if ( ($Ticket->OwnerObj->id == $session{CurrentUser}->id) and 
($can{'ModifyTicket'} or $Ticket->CurrentUserHasRight('ReplyToTicket') )) {
----
 > if ( $can{'ModifyTicket'} or 
$Ticket->CurrentUserHasRight('ReplyToTicket') ) {

Is there any way to do it with callbacks? To add a new ACL like "take 
someone's ticket"?

Regards,
Jonathan Scher


More information about the Rt-devel mailing list