Login: Fixes Unauthorized message showing when on login page or snapshot page (#35311)

This commit is contained in:
Torkel Ödegaard 2021-06-07 11:42:49 +02:00 committed by GitHub
parent d0eee917a5
commit ce513e4637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,7 @@ import { QueryRunner } from './features/query/state/QueryRunner';
import { getTimeSrv } from './features/dashboard/services/TimeSrv';
import { getVariablesUrlParams } from './features/variables/getAllVariableValuesForUrl';
import getDefaultMonacoLanguages from '../lib/monaco-languages';
import { contextSrv } from './core/services/context_srv';
// add move to lodash for backward compatabilty with plugins
// @ts-ignore
@ -146,7 +147,9 @@ function initEchoSrv() {
}
});
registerEchoBackend(new PerformanceBackend({}));
if (contextSrv.user.orgRole !== '') {
registerEchoBackend(new PerformanceBackend({}));
}
if (config.sentry.enabled) {
registerEchoBackend(