Modifying Ticket/Elements/ShowBasics

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) {

<&|/l&>Priority: <%$Ticket->Priority%>/<%$Ticket->FinalPriority %> % }

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

Thanks,
Phil

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

Ruslan U. Zakirov wrote:

Phil Lawrence wrote:


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

Thank you!

But also I notice that priority changes are visible in the ShowHistory
section for unpriviliged clients. And I don’t see how to filter what
transactions are shown there…

Any ideas?

Thanks,
Phil

Phil Lawrence wrote:

But also I notice that priority changes are visible in the ShowHistory
section for unpriviliged clients. And I don’t see how to filter what
transactions are shown there…

This did it:

rcsdiff ShowHistory

RCS file: ShowHistory,v
retrieving revision 1.1
diff -r1.1 ShowHistory
88a89,92

# unprivileged clients should not see Priority
unless ($session{'CurrentUser'}->Privileged) {
    next if $Transaction->Field eq 'Priority';
}

Phil