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

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

View file

@ -96,6 +96,7 @@ describe('reindexService', () => {
index: [
{
names: ['anIndex', `reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -119,6 +120,7 @@ describe('reindexService', () => {
index: [
{
names: ['.ml-anomalies', `.reindexed-v${CURRENT_MAJOR_VERSION}-ml-anomalies`],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -149,6 +151,7 @@ describe('reindexService', () => {
`reindexed-v${CURRENT_MAJOR_VERSION}-anIndex`,
'anIndex',
],
allow_restricted_indices: true,
privileges: ['all'],
},
{
@ -172,6 +175,7 @@ describe('reindexService', () => {
index: [
{
names: ['.watches', `.reindexed-v${CURRENT_MAJOR_VERSION}-watches`],
allow_restricted_indices: true,
privileges: ['all'],
},
{

View file

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