Skip to content

Commit

Permalink
console: disable access to embedded console without dev tools capability
Browse files Browse the repository at this point in the history
  • Loading branch information
TattdCodeMonkey committed Jan 23, 2024
1 parent f7bd917 commit df184cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/console/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ export class ConsoleUIPlugin implements Plugin<void, void, AppSetupUIPluginDepen
const {
ui: { enabled: isConsoleUiEnabled },
} = this.ctx.config.get<ClientConfigType>();
if (isConsoleUiEnabled) {

if (isConsoleUiEnabled && core.application.capabilities?.dev_tools?.show === true) {
return {
renderEmbeddableConsole: (props: EmbeddableConsoleProps) => {
const consoleDeps: EmbeddableConsoleDependencies = {
Expand Down

0 comments on commit df184cb

Please sign in to comment.