mirror of
https://github.com/status-im/consul.git
synced 2025-02-03 09:24:25 +00:00
ui: Disabling policy form fields from users with 'read' permissions (#10902)
This commit is contained in:
parent
5e31421602
commit
a777b0a9ba
3
.changelog/10902.txt
Normal file
3
.changelog/10902.txt
Normal file
@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: Disabling policy form fields from users with 'read' permissions
|
||||
```
|
@ -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…
x
Reference in New Issue
Block a user