<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 19, 2013 at 8:41 PM, Patrick G. Stoesser <span dir="ltr"><<a href="mailto:lists@pgs-info.de" target="_blank">lists@pgs-info.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
this modification works for me: In<br>
<br>
RTLOCAL/html/Ticket/Display.<u></u>html, around line 180,<br>
<br>
change<br>
<br>
# XXX: we shouldn't block actions here if user has no right to see the<br>
# ticket,<br>
# but we should allow him to see actions he has done<br>
        unless ($TicketObj-><u></u>CurrentUserHasRight('<u></u>ShowTicket')) {<br>
        Abort("No permission to view ticket");<br>
        }<br>
<br>
to<br>
<br>
# XXX: we shouldn't block actions here if user has no right to see the<br>
# ticket,<br>
# but we should allow him to see actions he has done<br>
        unless ($TicketObj-><u></u>CurrentUserHasRight('<u></u>ShowTicket')) {<br>
##### begin mod redirect when no permission ############################<br>
#       Abort("No permission to view ticket");<br>
RT::Interface::Web::Redirect(<u></u>RT->Config->Get('WebURL').'<u></u>index.html');<br>
###### end mod redirect when no permission #############################<br>
        }<br>
<br>
<br>
>From now on, when a user has no right to see a ticket, he will be immediately redirected to index.html (RT at a glance).<br>
<br>
Possible drawback of my solution: The user does not get an explicit error message ("No permission to view ticket") anymore.<br></blockquote><div><br></div><div style>I pointed you at <span style="font-family:arial,sans-serif;font-size:13px">MaybeRedirectForResults for a reason, it stashes messages and those will be displayed on "RT at glance page".</span></div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
A possible solution could be to give out the error status and redirect after one or two seconds to index.html.<br>
<br>
Kind regards,Patrick<br>
<br>
<br>
<br>
Am 12.04.2013 15:05, schrieb Patrick G. Stoesser:<div class=""><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Hello,<br>
<br>
as described in <<a href="mailto:514C70F2.1040200@pgs-info.de" target="_blank">514C70F2.1040200@pgs-info.de</a>><u></u>, I run two queues,<br>
Level1 and Level2. My Level2 users now have a custom status<br>
"returned". When chosing this status for a ticket, the ticket will<br>
change the queue to Level1, will be set to unowned and escalations<br>
will be reset to the beginning. This whole thing works fine.<br>
<br>
The only thing: As soon as the tickets' level is set to "returned"<br>
and so the queue has changed, the user gets an error site: "No<br>
permission to view ticket"<br>
<br>
Which is correct, because the ticket has left his queue.<br>
<br>
Is it possible to redirect the user to his RT at a glance site in<br>
this case? Yes, it's jaust a click, but a displayed error may be<br>
disturbing for the user, especially when he did nothing wrong.<br>
<br>
Thanks in advence, Patrick<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best regards, Ruslan.
</div></div>