Create privilege action to allow for decrypted telemetry payload (#96571)

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Larry Gregory 2021-04-22 13:08:26 -04:00 committed by GitHub
parent 55f3b8975e
commit dc8786604a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 497 additions and 422 deletions

View file

@ -105,6 +105,7 @@ export function privilegesFactory(
all: [
actions.login,
actions.version,
actions.api.get('decryptedTelemetry'),
actions.api.get('features'),
actions.space.manage,
actions.ui.get('spaces', 'manage'),
@ -113,7 +114,12 @@ export function privilegesFactory(
actions.ui.get('enterpriseSearch', 'all'),
...allActions,
],
read: [actions.login, actions.version, ...readActions],
read: [
actions.login,
actions.version,
actions.api.get('decryptedTelemetry'),
...readActions,
],
},
space: {
all: [actions.login, actions.version, ...allActions],