>
> 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 

-- 



Reply via email to