thanks for tips - yes I did have that inserted in the controller.
On Thu, Jul 26, 2012 at 2:01 PM, Anthony <abasta...@gmail.com> wrote: >> The redirect in: >> if not any(has_membership): >> redirect(URL(r=request, c='default', f='index')) >> >> will not break the execution of models? > > > Since the original code did not test for the controller, I assumed it was > inserted at the top of the controller in question, which would allow all the > models to be executed before the redirect. So, I suggested moving it to an > early model file (which would require checking for the controller name as > well as the auth role). > > Anthony > > -- > > > --