[UA] Specify allow_restricted_indices for _has_privileges (#35125)

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

View file

@ -93,6 +93,7 @@ describe('reindexService', () => {
index: [
{
names: ['anIndex', `reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -116,6 +117,7 @@ describe('reindexService', () => {
index: [
{
names: ['.ml-anomalies', `.reindexed-v${CURRENT_MAJOR_VERSION}-ml-anomalies`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -146,6 +148,7 @@ describe('reindexService', () => {
`reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`,
'anIndex',
],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -169,6 +172,7 @@ describe('reindexService', () => {
index: [
{
names: ['.watches', `.reindexed-v${CURRENT_MAJOR_VERSION}-watches`],
allow_restricted_indices: true,
privileges: ['all'],
},
{

View file

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