Hi,

Thanks for this replay, showed example with if logic is very
interesting,

Regards

Miroslav

On Nov 15, 11:59 am, Khalil KHAMLICHI <khamlichi.kha...@gmail.com>
wrote:
> Hi,
>
> you can as well put you logic in the menu.py file like this :
>
> if auth.user:
>     if auth.user.id > 10 and auth.user.team == "admins":
>         response.menu = . . . .
>     else:
>         response.menu = . . . .
>
> I use this as a way to make custom menus depending on user logged in.
>
> Sent from my Android

Reply via email to