mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
SignedInUser: Only register echo backend if user is signed in (#78545)
fix SignedIn checks
This commit is contained in:
+1
-2
@@ -15,7 +15,6 @@ import { createRoot } from 'react-dom/client';
|
|||||||
import {
|
import {
|
||||||
locationUtil,
|
locationUtil,
|
||||||
monacoLanguageRegistry,
|
monacoLanguageRegistry,
|
||||||
OrgRole,
|
|
||||||
setLocale,
|
setLocale,
|
||||||
setTimeZoneResolver,
|
setTimeZoneResolver,
|
||||||
setWeekStart,
|
setWeekStart,
|
||||||
@@ -280,7 +279,7 @@ function initEchoSrv() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (contextSrv.user.orgRole !== OrgRole.None) {
|
if (contextSrv.user.orgRole !== '') {
|
||||||
registerEchoBackend(new PerformanceBackend({}));
|
registerEchoBackend(new PerformanceBackend({}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user