if auth.is_logged_in() and (auth.has_membership('Public') or auth.
has_membership('Admin')):
response.menu.append((T('Home'),URL('default','index')==URL(),URL('default'
,'index'),[]))
if auth.is_logged_in() and auth.has_membership('Admin'):
response.menu.append((T('Home'),URL('default','index')==URL(),URL('default'
,'index'),[]))
On Friday, October 5, 2012 9:17:56 PM UTC+9, piero crisci wrote:
>
> Hello i am new to web2py and i am really skilled.
> I am trying to improve my tests but i can t find a solution for this
> problem.
> I wanto to buil a menù with 2 macro categories:
> - Pages with Pubblic Navigation for user logged in
> - Pages for user included in an auth.groups called ( Admin)
>
> How can i manage to show the only first category for the normal user
> without showing the second category?
> Thank for help!
>
>
--