mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Login: Fixes Unauthorized message showing when on login page or snapshot page (#35311)
This commit is contained in:
parent
d0eee917a5
commit
ce513e4637
@ -45,6 +45,7 @@ import { QueryRunner } from './features/query/state/QueryRunner';
|
|||||||
import { getTimeSrv } from './features/dashboard/services/TimeSrv';
|
import { getTimeSrv } from './features/dashboard/services/TimeSrv';
|
||||||
import { getVariablesUrlParams } from './features/variables/getAllVariableValuesForUrl';
|
import { getVariablesUrlParams } from './features/variables/getAllVariableValuesForUrl';
|
||||||
import getDefaultMonacoLanguages from '../lib/monaco-languages';
|
import getDefaultMonacoLanguages from '../lib/monaco-languages';
|
||||||
|
import { contextSrv } from './core/services/context_srv';
|
||||||
|
|
||||||
// add move to lodash for backward compatabilty with plugins
|
// add move to lodash for backward compatabilty with plugins
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
@ -146,7 +147,9 @@ function initEchoSrv() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (contextSrv.user.orgRole !== '') {
|
||||||
registerEchoBackend(new PerformanceBackend({}));
|
registerEchoBackend(new PerformanceBackend({}));
|
||||||
|
}
|
||||||
|
|
||||||
if (config.sentry.enabled) {
|
if (config.sentry.enabled) {
|
||||||
registerEchoBackend(
|
registerEchoBackend(
|
||||||
|
Loading…
Reference in New Issue
Block a user