Skip to content

Commit

Permalink
ui: Disabling policy form fields from users with 'read' permissions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaxcode authored and hc-github-team-consul-core committed Aug 25, 2021
1 parent 45ac42e commit f43eab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/10902.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
ui: Disabling policy form fields from users with 'read' permissions
```
2 changes: 1 addition & 1 deletion ui/packages/consul-ui/app/abilities/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

Expand Down

0 comments on commit f43eab3

Please sign in to comment.