fix(erpsetup): let the registry's API user append usage records
ci / shared (pull_request) Successful in 12s
ci / test (pull_request) Successful in 23m18s
ci / image (pull_request) Skipped

The API user holds Sales User and Accounts User; only System Manager
could create a Usage Record.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit is contained in:
Sharang ParnerkarandClaude Opus 5.5 committed 2026-09-23 23:10:39 +02:00
1 parent e0bff8c793
commit 57400989ab
1 file changed
+3
+3
View File
@@ -60,6 +60,9 @@ func usageRecordDoctype() map[string]any {
{"role": "System Manager", "read": 1, "write": 1, "create": 1, "delete": 1, "report": 1, "export": 1},
{"role": "Accounts Manager", "read": 1, "report": 1, "export": 1},
{"role": "Sales Manager", "read": 1, "report": 1, "export": 1},
// The registry's API user (platform-registry) holds Sales User and
// Accounts User, not System Manager: it only appends usage.
{"role": "Sales User", "read": 1, "create": 1},
},
}
}