[rt-users] Limit Ticket History View to Correspondence and Create only

Izz Abdullah Izz.Abdullah at hibbett.com
Tue Oct 4 09:58:49 EDT 2011

I want to implement this exact setting for unprivileged users.  We do not have any special callbacks, and therefore don't have a directory structure like:
/opt/rt3/local/html/Callbacks/mococo/Ticket/Elements/ShowHistory/SkipTransaction (we're using RT4.0.2, but the /opt/rt4/local/html directory is completely empty)

My question again is where would I put the SkipTransaction code from below, and from where, and I guess how, would I call it?  I'm not familiar with implementing Callbacks, so any help would be greatly appreciated.


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com [mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Lars Braeuer
Sent: Thursday, September 29, 2011 12:47 PM
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Limiting the information unprivileged users are ableto see via the webinterface

Hello Joop,

thanks a lot for this hint. This really saved my day. :)

Actually, I finally achieved what I wanted to do with the following (in case someone else is looking
for this):

return if $session{'CurrentUser'}->Privileged;
my $myskip=1;

if ( $Transaction->Type =~ /^(Correspond|Create)$/ ) {
        $myskip = 0;


$Transaction => undef

This skips everything but Correspond and the initial Create message.

Also thanks to Thomas about the "return" hint.

Best regards,


More information about the rt-users mailing list