[rt-users] modifying Ticket/Elements/ShowBasics

Ruslan U. Zakirov Ruslan.Zakirov at miet.ru
Mon May 23 10:31:32 EDT 2005


Phil Lawrence wrote:
> 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) {
$session{'CurrentUser'}->Privileged
See http://wiki.bestpractical.com/?GlobalObjects

>   <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
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
> 
> Be sure to check out the RT Wiki at http://wiki.bestpractical.com
> 




More information about the rt-users mailing list