Skip to content

Roles and rights

Every user has one role. The role decides what the user can read, create and change. The rights are defined in one file, apps/api/src/auth/matrice-droits.ts, and checked by the API on every request. The web interface hides the actions a role cannot perform, but the API is the authority.

RoleForSummary
directionManagementAll rights on the garage: workshop, invoicing, stock, sales, settings.
adminTechnical administratorAccounts, sites and settings. No rights on money, stock or sales.
comptableAccountingPayments, accounting exports, reading of invoices and supplier invoices.
receptionnaireCounterQuotes, invoices and payments. Credit notes up to a ceiling.
vendeurSalesNew and used car sales, quotes, invoices and payments.
chef_atelierWorkshop managerRepair orders and quotes. Drafts documents, but does not issue invoices or credit notes.
technicienTechnicianClocks time on repair orders. Reads the documents of the orders. Issues nothing.
magasinierPartsStock, reservations, supplier orders, payments at the counter.
poste_atelierWorkshop terminalA shared terminal account for one site. Clocks time with a PIN. No money.

The rights of admin do not include money, stock or sales, on purpose. Use direction to test the business flows.

The matrix defines the rights for each action, such as creating an invoice, recording a payment, moving stock, or opening the dashboard’s financial figures. Some rights depend on the status of the document, for example an issued invoice cannot be changed by anyone.

Check the file for the exact list. It is the source of truth for each release.

A user can have access to all sites of the garage, or to one site. The workshop terminal always has one site.

When a person leaves the garage, deactivate their account rather than deleting it. The audit trail refers to the account, so it must stay in place.