mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Rename proxy restriction function for clarity
This is a private function to the elasticsearch index file, but the name "noCreateIndex" was misleading because it actually restricts any access to the direct index rather than only creates. Fixes #6477
This commit is contained in:
parent
420d5fbd12
commit
d3f5bf886d
1 changed files with 2 additions and 2 deletions
|
@ -54,7 +54,7 @@ module.exports = function ({ Plugin }) {
|
|||
return reply.continue();
|
||||
}
|
||||
|
||||
function noCreateIndex({ path }, reply) {
|
||||
function noDirectIndex({ path }, reply) {
|
||||
const requestPath = trimRight(trim(path), '/');
|
||||
const matchPath = createPath(kibanaIndex);
|
||||
|
||||
|
@ -75,7 +75,7 @@ module.exports = function ({ Plugin }) {
|
|||
['PUT', 'POST', 'DELETE'],
|
||||
`/${kibanaIndex}/{paths*}`,
|
||||
{
|
||||
pre: [ noCreateIndex, noBulkCheck ]
|
||||
pre: [ noDirectIndex, noBulkCheck ]
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue