Add admin/editeur/user roles for the associates

root (renamed from the default admin/admin account) keeps full,
unrestricted access outside any role system. These three cover the
actual associates:

- user: read-only, 'access content' only -- can browse /lignes and
  /dashboard, nothing else.
- editeur: 'access content' + create/edit any/delete any
  ligne_comptable content -- can enter and correct accounting lines,
  no site configuration.
- admin: identical permission set to editeur for now (per instruction,
  actual config permissions to be scoped later).

Left the pre-existing "administrator" (is_admin bypass -- too broad)
and "content_editor" (generic Standard-recipe scaffolding, permissions
unrelated to ligne_comptable) roles untouched but unused; worth
pruning later if nothing ends up using them.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-04 11:01:07 +02:00
co-authored by Claude Sonnet 5
parent f8ae2d6a9e
commit a86875c03c
9 changed files with 132 additions and 0 deletions
@@ -0,0 +1,14 @@
uuid: 24f21f8a-6568-46c9-84ee-d7480458882a
langcode: en
status: true
dependencies:
config:
- user.role.user
module:
- user
id: user_add_role_action.user
label: 'Add the Utilisateur (lecture seule) role to the selected user(s)'
type: user
plugin: user_add_role_action
configuration:
rid: user