Browse Source

ui: Disabling policy form fields from users with 'read' permissions (#10902)

pull/10909/head
Kenia 3 years ago committed by GitHub
parent
commit
a777b0a9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .changelog/10902.txt
  2. 2
      ui/packages/consul-ui/app/abilities/policy.js

3
.changelog/10902.txt

@ -0,0 +1,3 @@
```release-note:bug
ui: Disabling policy form fields from users with 'read' permissions
```

2
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
);
}

Loading…
Cancel
Save