From f6c9c196ba798325a2cef935bd20857f34cbc97a Mon Sep 17 00:00:00 2001 From: Atif Shoukat Ali Date: Mon, 16 Aug 2021 22:11:39 -0700 Subject: [PATCH] Live: No connection warning for user with no org (#37943) --- public/app/features/live/LiveConnectionWarning.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/app/features/live/LiveConnectionWarning.tsx b/public/app/features/live/LiveConnectionWarning.tsx index a4d18d34405..54f23413c93 100644 --- a/public/app/features/live/LiveConnectionWarning.tsx +++ b/public/app/features/live/LiveConnectionWarning.tsx @@ -45,8 +45,8 @@ export class LiveConnectionWarning extends PureComponent { render() { const { show } = this.state; if (show) { - if (!contextSrv.isSignedIn || !config.liveEnabled) { - return null; // do not show the warning for anonymous users (and /login page etc) + if (!contextSrv.isSignedIn || !config.liveEnabled || contextSrv.user.orgRole === '') { + return null; // do not show the warning for anonymous users or ones with no org (and /login page etc) } return (