You can set auth.settings.on_failed_authorization to the URL where you want 
to redirect.

Anthony

On Monday, September 24, 2012 10:33:31 PM UTC-4, shartha wrote:
>
> Is there any way to redirect unauthorized user? 
>
> For instance if the user doesn't have the membership for a particular 
> group, e.g. *group1*, if the try to access a particular controller that 
> is decorated with the following:
> *@auth.requires_membership('group1')*
> I'd like to be able to redirect them to another page, rather than showing 
> the unauthorized page to them. Is this easily achievable? 
>
> I know I can remove the decorator and use an if-block to check the 
> membership and if it is not held, redirect the user to another page. But I 
> am looking for an alternative simpler way if that exists.
>
>

-- 



Reply via email to