diff --git a/ui/packages/consul-ui/app/services/repository/permission.js b/ui/packages/consul-ui/app/services/repository/permission.js index dd87209ae..5d6bc8084 100644 --- a/ui/packages/consul-ui/app/services/repository/permission.js +++ b/ui/packages/consul-ui/app/services/repository/permission.js @@ -155,10 +155,10 @@ export default class PermissionService extends RepositoryService { // This temporary measure should be removed again once https://github.com/hashicorp/consul/issues/11098 // has been resolved this.permissions.forEach(item => { - if(['key', 'node', 'service', 'intentions', 'session'].includes(item.Resource)) { + if (['key', 'node', 'service', 'intention', 'session'].includes(item.Resource)) { item.Allow = true; } - }) + }); /**/ return this.permissions; } diff --git a/ui/packages/consul-ui/tests/acceptance/dc/intentions/index.feature b/ui/packages/consul-ui/tests/acceptance/dc/intentions/index.feature index 29db2c9b7..d5d888f67 100644 --- a/ui/packages/consul-ui/tests/acceptance/dc/intentions/index.feature +++ b/ui/packages/consul-ui/tests/acceptance/dc/intentions/index.feature @@ -23,7 +23,12 @@ Feature: dc / intentions / index dc: dc-1 --- Then the url should be /dc-1/intentions - And I don't see create + And I see create +# We currently hardcode intention write to true until the API does what we need +# Once we can use this as we need we'll be able to un-hardcode And this test +# will fail again, at which point we can remove the above assertion and +# uncomment the below one + # And I don't see create Scenario: Viewing intentions in the listing live updates Given 1 datacenter model with the value "dc-1" Given 3 intention models