For example, I have two menus (Home and Menu1) and Menu1 requires
login. Now, I login when I'm at Home, it redirect me to Menu1.
If I remove "@auth.requires_login()", the problem doesn't happen.
Should I issue the problem ticket ? or am I doing something wrong ?
models/menu.py
-------------------------------------------------------------------
response.menu = [
(T('Home'), False, URL('default','index'), []),
(T('Menu1'), False, URL('default','menu1'), []),
]
-------------------------------------------------------------------
controllers/default.py
-------------------------------------------------------------------
def index():
return dict(message=T('Hello World'))
@auth.requires_login()
def menu1():
return dict()
-------------------------------------------------------------------