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.