On Tuesday, September 25, 2012 7:52:48 PM UTC-4, shartha wrote:
>
> Thanks Anthony, your answer was pretty much what I needed. Ideally though, 
> it would've been nice to be able to redirect to different pages based on 
> different decorators. But I think that could be achieved within an if-block 
> in the controller of the URL you set *
> auth.settings.on_failed_authorization* equal to.
>

Yes, that's the way to go. All the decorators take an "otherwise" argument, 
which can be a URL or a callable, but I think it only takes effect if the 
user isn't logged in (i.e., not authenticated), not if a logged in user 
isn't authorized.

Anthony 

-- 



Reply via email to