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

Ruslan Zakirov ruslan.zakirov at gmail.com
Mon Mar 19 12:57:34 EDT 2007


You can do this using ACLs in the right way by granting ReplyToTicket
right to owner role only.

On 3/19/07, Jonathan Scher <js at oxado.com> wrote:
> 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
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>


-- 
Best regards, Ruslan.


More information about the Rt-devel mailing list