diff --git a/.changelog/10902.txt b/.changelog/10902.txt new file mode 100644 index 0000000000..fd346bbe45 --- /dev/null +++ b/.changelog/10902.txt @@ -0,0 +1,3 @@ +```release-note:bug +ui: Disabling policy form fields from users with 'read' permissions +``` \ No newline at end of file diff --git a/ui/packages/consul-ui/app/abilities/policy.js b/ui/packages/consul-ui/app/abilities/policy.js index 739408a187..26e310dbfb 100644 --- a/ui/packages/consul-ui/app/abilities/policy.js +++ b/ui/packages/consul-ui/app/abilities/policy.js @@ -16,7 +16,7 @@ export default class PolicyAbility extends BaseAbility { return ( this.env.var('CONSUL_ACLS_ENABLED') && (typeof this.item === 'undefined' || typeOf([this.item]) !== 'policy-management') && - super.canRead + super.canWrite ); }