mirror of
https://github.com/status-im/consul.git
synced 2025-01-12 14:55:02 +00:00
8263879e6f
This commit use the internal authorize endpoint along wiht ember-can to further restrict user access to certain UI features and navigational elements depending on the users ACL token
15 lines
259 B
Plaintext
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'))
|
|
}
|
|
)
|
|
);
|
|
})
|
|
}
|
|
]
|