Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

users in Lino CMS

The lino_cms.lib.users plugin extends lino.modlib.users.

Side note: Code snippets (lines starting with >>>) in this document get tested as part of our development workflow. The following initialization snippet tells you which demo project is being used in this document.

>>> import lino
>>> lino.startup('lino_book.projects.cms1.settings')
>>> from lino.api.doctest import *

Available user types

Lino CMS knows the following user types:

>>> rt.show(rt.models.users.UserTypes)
======= =========== ===============
 value   name        text
------- ----------- ---------------
 000     anonymous   Anonymous
 100     user        User
 800     staff       Staff
 900     admin       Administrator
======= =========== ===============

A demo site has the following users:

>>> rt.show(rt.models.users.UsersOverview)
... 
========== ===================== ==========
 Username   User type             Language
---------- --------------------- ----------
 andy       100 (User)            en
 bert       100 (User)            en
 chloe      100 (User)            en
 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')
... 
- Publisher : Pages, My Blog entries, Sources
- Office : My Upload files, My Comments, Recent comments, Data problem messages assigned to me
- Configure :
  - Publisher : Special pages, Blog Entry Types, Topics, Albums, Licenses, Authors
  - System : Users, Groups, Site contacts, Site configuration, System tasks
  - Office : Library volumes, Upload types, Comment Types
- Explorer :
  - System : Authorities, User types, User roles, Third-party authorizations, Group memberships, Data checkers, Data problem messages, Background procedures, content types
  - Office : Upload files, Upload areas, Comments, Reactions, Mentions
  - Publisher : Blog entries, Tags
- Site : About, User sessions