User roles in Lino LETS

>>> import lino
>>> lino.startup('lino_lets.projects.letsdemo.settings.doctests')
>>> from lino.api.doctest import *

Site administrator

Rolf is a site administrator, he has a complete menu:

>>> ses = rt.login('robin')
>>> ses.user.user_type
<users.UserTypes.admin:900>
>>> ses.show_menu()
... 
- Master : Products
- Market : Offers, Demands
- Configure :
  - System : Members, Site Parameters
  - Market : Places, Categories
- Explorer :
  - System : Authorities, User types, User roles
- Site : About

Normal members

Fred is a normal user, he has a limited main menu.

>>> ses = rt.login('fred')
>>> ses.user.user_type
<users.UserTypes.user:100>
>>> ses.show_menu()
... 
- Master : Products
- Market : Offers
- Site : About