From 5dd5ed9b30f2d85304659be0cf0ec91a36a85f1b Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 23 Nov 2023 10:11:53 +0100 Subject: [PATCH] SignedInUser: Only register echo backend if user is signed in (#78545) fix SignedIn checks --- 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 fedbda115589..aa0332b20a75 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({})); }