Private comments are seen only by their respective author.
Public comments are shown to other social workers. Comments are never shown to
the external supervisor.
A system administrator can see all comments (it makes no
sense to hide them because a system admin can easily create or use a user
account with the permissions they want).
>>> rt.login("nathalie").show(comments.RecentComments)...- [... ago](… "Created ...") by **nathalie** in reply to**martina** about [KEITA Cácey (161/nathalie)](…) : This is a comment about[Mr Chátá Cisse](/#/api/contacts/Persons/150) and [Mr ChiámákáCongo](/#/api/contacts/Persons/126)....
>>> rt.show(comments.Comments,... column_names="id user owner",limit=6)...
comments
(comments in Avanti)¶The
lino.modlib.comments
in Lino Avanti is configured and used to satisfy the application requirements.Note
Code snippets in this document (lines starting with
>>>
) get tested as part of our development workflow. The following initialization snippet tells you which demo project is being used.Overview¶
Comments in Lino Avanti are considered confidential data and can be seen only by users with appropriate permission.
See also User types in Lino Avanti.
Private comments are seen only by their respective author.
Public comments are shown to other social workers. Comments are never shown to the external supervisor.
A system administrator can see all comments (it makes no sense to hide them because a system admin can easily create or use a user account with the permissions they want).
Comments are private by default:
All partners are
Commentable
, but in Lino Avanti: we use comments only onClient
.Tests¶
The demo database contains 648 comments, and they are all private.
Robin can see them all.
Nathalie sees only her own comments:
Summary: