For example, I have a following entry in my control for menus. I want "VIP Only" page only visible for the users who has role='vip' because the other user get rejected anyway and I don't need to hurt their feelings.
Is this possible ?
response.menu = [('Public', True, URL('index')),
('Member Only', False, URL('member')),
('VIP Only', False, URL('vip')),
]
def index():
return dict()
@auth.requires_login()
def member():
return dict()
@auth.requires_membership('vip')
def vip():
return dict()

