[rt-users] Selfservice Display error

Phil Homewood pdh at snapgear.com
Sun Jan 5 18:46:31 EST 2003


Seth Cohn, EFN General Manager wrote:
> unless ($session{'CurrentUser'}->HasQueueRight ( TicketObj => $Ticket,
>                                                 Right => 'ShowTicket')) {
>     $m->comp('Error.html', Why => "No permission to display that ticket");
>     $m->abort();
> }

I don't use SelfService, so this is untested, but try replacing that with

unless ($Ticket->CurrentUserHasRight('ShowTicket')) {
    $m->comp('Error.html', Why => "No permission to display that ticket");
    $m->abort();
}

and see if it helps?
-- 
Phil Homewood, Systems Janitor, www.SnapGear.com
pdh at snapgear.com Ph: +61 7 3435 2810 Fx: +61 7 3891 3630
SnapGear - Custom Embedded Solutions and Security Appliances



More information about the rt-users mailing list