fix: bind overseas receiving to shared warehouse
This commit is contained in:
@@ -61,8 +61,9 @@ export async function run(context) {
|
||||
`permissionCount=${tallyCodes.size}`, OPTIONS)
|
||||
|
||||
context.assert(MODULE, '仓库系统角色不包含任何客户侧权限', rolesResponse,
|
||||
[...operatorCodes, ...pickerCodes, ...tallyCodes].every((code) => code.startsWith('platform:')),
|
||||
'all warehouse role permissions must use platform scope', OPTIONS)
|
||||
[...operatorCodes, ...pickerCodes, ...tallyCodes]
|
||||
.every((code) => code.startsWith('platform:') || code === 'lastleg:pda:operate'),
|
||||
'warehouse roles may use platform:* plus the single overseas service authority lastleg:pda:operate', OPTIONS)
|
||||
|
||||
const unauthorized = await context.request('GET',
|
||||
'/api/platform/v1/first-leg/pda-loading/tasks?cabinetNo=UNAUTHORIZED&warehouseId=1', undefined, '')
|
||||
|
||||
Reference in New Issue
Block a user