Hi Omi:

I think this should work:

put this in models/menu.py

response.menu = [
                 ('Public',  True,  URL('index')), 
                 ('Member Only',  False,  URL('member')), 
                 ] 
if (auth.user_id != None) and ((auth.has_membership(role = 'vip')) :
    response.menu += [('VIP Only',  False,  URL('vip')), ]


NOT TESTED, but i think could help.


Bye.

Reply via email to