mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Live: No connection warning for user with no org (#37943)
This commit is contained in:
parent
5d74c47cf8
commit
f6c9c196ba
@ -45,8 +45,8 @@ export class LiveConnectionWarning extends PureComponent<Props, State> {
|
||||
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 (
|
||||
|
Loading…
Reference in New Issue
Block a user