fix: expose overseas customer permissions

This commit is contained in:
2026-09-04 13:23:57 +08:00
parent 0957324fb0
commit 6998f81738
2 changed files with 12 additions and 0 deletions
@@ -91,6 +91,14 @@ test('shares the merchant permission map and preserves resources not rendered by
assert.match(contractsSource, /export const FRONTEND_TO_MERCHANT_PERMISSION_CODES/)
assert.match(contractsSource, /'order:first-leg:cancel': \['merchant:order:cancel'\]/)
assert.match(contractsSource, /'company:member:create': \['merchant:member:create'\]/)
for (const permission of [
'merchant:warehouse:inbound:list',
'merchant:cross-border:procurement',
'merchant:cross-border:domestic-trucking',
'merchant:cross-border:pallet-shipping',
]) {
assert.match(contractsSource, new RegExp(`'${permission}': \\['${permission}'\\]`))
}
assert.match(contractsSource, /'company:member:edit': \['merchant:member:edit'\]/)
assert.match(contractsSource, /'company:member:grant-role': \['merchant:member:grant-role'\]/)
assert.match(contractsSource, /'company:member:status': \['merchant:member:status'\]/)