thanks, I know about this option. I use it when I just test for a
role, I guess requires_login can be omitted in this case.
I've seen that I can use routes_onerror in routes.py to define custom
error pages for http errors and all other errors. I tested it
successfully, works great!
You could also try decorating:
@auth.requires_membership('admin')
@auth.requires_login()
def edit():
I don't know if requires_login is necessary since requires_membership may
imply a login. I'm also not sure what exactly happens on the front-end if
the user does not have membership.
2 matches
Mail list logo