[UA] Specify allow_restricted_indices for _has_privileges (#35125) (#35170)

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2019-04-16 12:22:59 -07:00 committed by GitHub
parent b0302ff981
commit f28e743598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 0 deletions

View file

@ -98,6 +98,7 @@ describe('reindexService', () => {
index: [
{
names: ['anIndex', `reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -121,6 +122,7 @@ describe('reindexService', () => {
index: [
{
names: ['.ml-anomalies', `.reindexed-v${CURRENT_MAJOR_VERSION}-ml-anomalies`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -151,6 +153,7 @@ describe('reindexService', () => {
`reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`,
'anIndex',
],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -174,6 +177,7 @@ describe('reindexService', () => {
index: [
{
names: ['.watches', `.reindexed-v${CURRENT_MAJOR_VERSION}-watches`],
allow_restricted_indices: true,
privileges: ['all'],
},
{

View file

@ -516,6 +516,7 @@ export const reindexServiceFactory = (
index: [
{
names,
allow_restricted_indices: true,
privileges: ['all'],
},
{