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

(cherry picked from commit ce513e4637)
This commit is contained in:
Torkel Ödegaard
2021-06-17 14:39:52 +02:00
committed by GitHub
parent cf738cb1b9
commit 8d5a9f30bc
2 changed files with 5 additions and 5 deletions
+1 -3
View File
@@ -1,8 +1,6 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [
"packages/*"
],
"packages": ["packages/*"],
"version": "7.5.8"
}
+4 -2
View File
@@ -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(