[rt-users] Redirect when no access / no rights?

Ruslan Zakirov ruz at bestpractical.com
Mon Apr 15 11:04:55 EDT 2013


Hi,

There is no suitable callbacks for this. You can search for Abort in
Ticket/Display.html and place a callback yourself just before abort calls.
Other way is to wrap Abort check caller with perl's caller function
(perldoc -f caller) and do redirect when it's Ticket/Display.html. To do
redirect take a look at MaybeRedirectForResults calls.

I like what you want to do and I think Display.html can be refactored to
make it much easier to implement "redirect to different place if user has
no rights to see ticket after changes", so good patches are welcome.


On Fri, Apr 12, 2013 at 5:05 PM, Patrick G. Stoesser <lists at pgs-info.de>wrote:

> Hello,
>
> as described in <514C70F2.1040200 at pgs-info.de>**, I run two queues,
> Level1 and Level2. My Level2 users now have a custom
> status "returned". When chosing this status for a ticket, the ticket
> will change the queue to Level1, will be set to unowned and escalations
> will be reset to the beginning. This whole thing works fine.
>
> The only thing: As soon as the tickets' level is set to "returned" and so
> the queue has changed, the user gets an error site: "No permission to view
> ticket"
>
> Which is correct, because the ticket has left his queue.
>
> Is it possible to redirect the user to his RT at a glance site in this
> case? Yes, it's jaust a click, but a displayed error may be disturbing for
> the user, especially when he did nothing wrong.
>
> Thanks in advence, Patrick
>



-- 
Best regards, Ruslan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20130415/96cac6ec/attachment.htm>


More information about the rt-users mailing list