Merge pull request 'fix(test): grant societe client voir (262) so /thirdparties list works' (#20) from claude/sandbox-provision-run into main

This commit was merged in pull request #20.
This commit is contained in:
2026-06-29 20:17:20 +02:00

View File

@@ -34,7 +34,7 @@ import userSetup from "./scripts/admin/userSetup.ts";
Write rights to grant `ai_agent_sandbox` (stable Dolibarr rights ids, verified
against prod Dolibarr 22.0.4). Each module's read (lire) + create (creer):
facture: lire=11, creer=12
societe: lire=121, creer=122
societe: lire=121, creer=122, client voir (see-all)=262
societe contact: lire=281, creer=282
fournisseur: lire=1181, facture lire=1231, facture creer=1232
produit: lire=31, creer=32
@@ -44,6 +44,9 @@ const WRITE_IDS = [
12, // facture creer
121, // societe lire
122, // societe creer
262, // societe client "voir" (see-all) — REQUIRED for the /thirdparties LIST
// endpoint; without it the list 404s (the voir_tous ACL trap, cf. the
// dolibarr skill SKILL.md). Other modules' lists work with plain `lire`.
281, // societe contact lire
282, // societe contact creer
1181, // fournisseur lire