Also, what you have coded looks similar to what happens if you decorate with 
@auth.requires_login():

http://web2py.com/book/default/chapter/08#Decorators

Reply via email to