Switch import route tag from access:ml:canFindFileStructure to access:fileUpload:import (#90677)
This commit is contained in:
parent
10adb72ddb
commit
6c224e5a10
|
@ -52,7 +52,7 @@ export function fileUploadRoutes(router: IRouter) {
|
|||
accepts: ['application/json'],
|
||||
maxBytes: MAX_FILE_SIZE_BYTES,
|
||||
},
|
||||
tags: ['access:ml:canFindFileStructure'],
|
||||
tags: ['access:fileUpload:import'],
|
||||
},
|
||||
},
|
||||
async (context, request, response) => {
|
||||
|
|
|
@ -177,6 +177,7 @@ export class MapsPlugin implements Plugin {
|
|||
catalogue: [APP_ID],
|
||||
privileges: {
|
||||
all: {
|
||||
api: ['fileUpload:import'],
|
||||
app: [APP_ID, 'kibana'],
|
||||
catalogue: [APP_ID],
|
||||
savedObject: {
|
||||
|
|
|
@ -41,6 +41,7 @@ const options = {
|
|||
maxBytes: MAX_BYTES,
|
||||
accepts: ['application/json'],
|
||||
},
|
||||
tags: ['access:fileUpload:import'],
|
||||
};
|
||||
|
||||
export const idConditionalValidation = (body, boolHasId) =>
|
||||
|
|
|
@ -99,7 +99,7 @@ export function getPluginPrivileges() {
|
|||
return {
|
||||
admin: {
|
||||
...privilege,
|
||||
api: allMlCapabilitiesKeys.map((k) => `ml:${k}`),
|
||||
api: ['fileUpload:import', ...allMlCapabilitiesKeys.map((k) => `ml:${k}`)],
|
||||
catalogue: [PLUGIN_ID, `${PLUGIN_ID}_file_data_visualizer`],
|
||||
ui: allMlCapabilitiesKeys,
|
||||
savedObject: {
|
||||
|
|
Loading…
Reference in a new issue