users in Lino Algus¶
The lino_algus.lib.users plugin extends lino.modlib.users.
This page contains code snippets (lines starting with >>>), which are
being tested during our development workflow. The following
snippet initializes the demo project used throughout this page.
>>> from lino_algus.projects.algus1.startup import *
Available user types¶
Lino Algus knows the following user types:
>>> rt.show(rt.models.users.UserTypes)
======= =========== ===============
value name text
------- ----------- ---------------
000 anonymous Anonymous
100 user User
500 staff Staff
900 admin Administrator
======= =========== ===============
A demo site has the following users:
>>> rt.show(rt.models.users.UsersOverview)
...
========== ===================== ==========
Username User type Language
---------- --------------------- ----------
robin 900 (Administrator) en
rolf 900 (Administrator) de
romain 900 (Administrator) fr
========== ===================== ==========
The site manager¶
Robin is a site manager, he has a complete menu.
>>> show_menu('robin')
...
- Configure :
- Site : Users, Site configuration
- Explorer :
- Site : Authorities, User types, User roles
- Site : About, User sessions