diff options
author | Christopher Speller <crspeller@gmail.com> | 2016-07-12 12:52:28 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-12 12:52:28 -0400 |
commit | 7c5c1d99ac3fce5648229de55103b06a438c6d1d (patch) | |
tree | 32a2a0f3a844a6424518a0f341941d764d7bac31 /webapp/components/logged_in.jsx | |
parent | 954e251188621563b3b10218f4072cc358149e84 (diff) | |
download | chat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.tar.gz chat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.tar.bz2 chat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.zip |
Fixing accessing admin console without credentials (#3558)
Diffstat (limited to 'webapp/components/logged_in.jsx')
-rw-r--r-- | webapp/components/logged_in.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
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'); } } |