[UA] Specify allow_restricted_indices for _has_privileges (#35125)
Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
ee0664a184
commit
98e6c99799
2 changed files with 5 additions and 0 deletions
|
@ -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'],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -463,6 +463,7 @@ export const reindexServiceFactory = (
|
|||
index: [
|
||||
{
|
||||
names,
|
||||
allow_restricted_indices: true,
|
||||
privileges: ['all'],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue