From 7c5c1d99ac3fce5648229de55103b06a438c6d1d Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Tue, 12 Jul 2016 12:52:28 -0400 Subject: Fixing accessing admin console without credentials (#3558) --- webapp/components/logged_in.jsx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webapp/components') diff --git a/webapp/components/logged_in.jsx b/webapp/components/logged_in.jsx index 484164e56..f637e9dc5 100644 --- a/webapp/components/logged_in.jsx +++ b/webapp/components/logged_in.jsx @@ -9,6 +9,7 @@ import BrowserStore from 'stores/browser_store.jsx'; import PreferenceStore from 'stores/preference_store.jsx'; import * as Utils from 'utils/utils.jsx'; import * as Websockets from 'actions/websocket_actions.jsx'; +import * as GlobalActions from 'actions/global_actions.jsx'; import Constants from 'utils/constants.jsx'; import {browserHistory} from 'react-router/es6'; @@ -71,6 +72,8 @@ export default class LoggedIn extends React.Component { if (this.state.user) { this.setupUser(this.state.user); + } else { + GlobalActions.emitUserLoggedOutEvent('/login'); } } -- cgit v1.2.3-1-g7c22