fix(erpsetup): let the registry's API user append usage records
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:
1 parent
e0bff8c793
commit
57400989ab
1 file changed
+3
@@ -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},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user