From 0e0ebc57129fc649ff17da2316624b1052b2eeb5 Mon Sep 17 00:00:00 2001 From: "grafana-delivery-bot[bot]" <132647405+grafana-delivery-bot[bot]@users.noreply.github.com> Date: Thu, 23 Nov 2023 13:08:40 +0100 Subject: [PATCH] [v10.2.x] SignedInUser: Only register echo backend if user is signed in (#78577) SignedInUser: Only register echo backend if user is signed in (#78545) fix SignedIn checks (cherry picked from commit 5dd5ed9b30f2d85304659be0cf0ec91a36a85f1b) Co-authored-by: Jo --- public/app/app.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/public/app/app.ts b/public/app/app.ts index 7c4da3f034f..b910cf67af5 100644 --- a/public/app/app.ts +++ b/public/app/app.ts @@ -15,7 +15,6 @@ import { createRoot } from 'react-dom/client'; import { locationUtil, monacoLanguageRegistry, - OrgRole, setLocale, setTimeZoneResolver, setWeekStart, @@ -280,7 +279,7 @@ function initEchoSrv() { } }); - if (contextSrv.user.orgRole !== OrgRole.None) { + if (contextSrv.user.orgRole !== '') { registerEchoBackend(new PerformanceBackend({})); }