It should work correctly, the default behavior should be to redirect the
user to the login page with the specified "msg" alert.
Try to test it in a newly quickstarted project and check it if works as
expected, quickstarted projects already provide a /manage_permission_only
url that showcases permissions check.


On Sat, Mar 2, 2013 at 2:25 AM, pkraus <[email protected]> wrote:

> I have a controller with ...
>
> allow_only = has_permission('site_admin',
>                                 msg=l_('Only for people with the "manage"
> permission'))
>
> The check works. If the user doesn't have the site_admin permission the
> msg is ignored and the system just throws a 500 error with internal server
> error displayed on a white page.
>
> What should happen? I figured it would redirect to the error controller
> and display the "msg" that was defined. How can I customize what happens on
> a fail check? What should the default behavior be?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/turbogears?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to