consul/ui/packages/consul-ui/mock-api/v1/internal/acl/authorize

15 lines
259 B
Plaintext

[
${
http.body.map(item => {
return JSON.stringify(
Object.assign(
item,
{
Allow: !!JSON.parse(env(`CONSUL_RESOURCE_${item.Resource.toUpperCase()}_${item.Access.toUpperCase()}`, 'true'))
}
)
);
})
}
]