Skip to content

Commit

Permalink
removing isSuperUser to test
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Oct 16, 2023
1 parent 09fd0ff commit 3ef30e1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions x-pack/plugins/profiling/server/routes/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import {
import { getSetupInstructions } from '../lib/setup/get_setup_instructions';
import { handleRouteHandlerError } from '../utils/handle_route_error_handler';
import { getClient } from './compat';
import { isSuperuser } from '../lib/setup/is_super_user';

export function registerSetupRoute({
router,
Expand All @@ -35,12 +34,13 @@ export function registerSetupRoute({
},
async (context, request, response) => {
try {
const hasRequiredRole = dependencies.start.security
? isSuperuser({
securityPluginStart: dependencies.start.security,
request,
})
: true;
const hasRequiredRole = true;
// dependencies.start.security
// ? isSuperuser({
// securityPluginStart: dependencies.start.security,
// request,
// })
// : true;

const esClient = (await context.core).elasticsearch.client;
const core = await context.core;
Expand Down

0 comments on commit 3ef30e1

Please sign in to comment.