[rt-users] modifying Ticket/Elements/ShowBasics

Phil Lawrence prlawrence at Lehigh.EDU
Mon May 23 10:24:52 EDT 2005


It seems to me that Priority is something our unprivileged clients 
should not see.  They can't set it, and don't know everything we are 
juggling, so are not really in a position to judge when we assign a 
Priority of '7' instead of '10' (for example).

Unless someone can correct my thinking, I'd like to disable Priority 
display for unprivileged users.  Here is my attempt, where I added the 
"RT::CurrentUser->new->Privileged" blocking:

Ticket/Elements/ShowBasics:
---------------------------

...
% if (RT::CurrentUser->new->Privileged) {
   <tr>
     <td class="label"><&|/l&>Priority</&>:</td>
     <td class="value">
       <%$Ticket->Priority%>/<%$Ticket->FinalPriority %>
     </td>
   </tr>
% }

But this test never evaluates true.  Can anyone point out how to get the 
the info I need from this ShowBasics module?

Thanks,
Phil



More information about the rt-users mailing list