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

This commit is contained in:
Kenia 2021-08-25 09:42:05 -04:00 committed by GitHub
parent 5e31421602
commit a777b0a9ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

3
.changelog/10902.txt Normal file
View File

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

View File

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