diff --git a/lerna.json b/lerna.json index 258479a8963..d6a3ceea604 100644 --- a/lerna.json +++ b/lerna.json @@ -1,8 +1,6 @@ { "npmClient": "yarn", "useWorkspaces": true, - "packages": [ - "packages/*" - ], + "packages": ["packages/*"], "version": "7.5.8" } diff --git a/public/app/app.ts b/public/app/app.ts index c51a353541e..b0c2130e36c 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -34,7 +34,7 @@ import { checkBrowserCompatibility } from 'app/core/utils/browser'; import { arrayMove } from 'app/core/utils/arrayMove'; import { importPluginModule } from 'app/features/plugins/plugin_loader'; import { angularModules, coreModule } from 'app/core/core_module'; -import { registerAngularDirectives } from 'app/core/core'; +import { contextSrv, registerAngularDirectives } from 'app/core/core'; import { setupAngularRoutes } from 'app/routes/routes'; import { registerEchoBackend, setEchoSrv } from '@grafana/runtime'; import { Echo } from './core/services/echo/Echo'; @@ -212,7 +212,9 @@ export class GrafanaApp { } }); - registerEchoBackend(new PerformanceBackend({})); + if (contextSrv.user.orgRole !== '') { + registerEchoBackend(new PerformanceBackend({})); + } if (config.sentry.enabled) { registerEchoBackend(