summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-07-12 12:52:28 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-07-12 12:52:28 -0400
commit7c5c1d99ac3fce5648229de55103b06a438c6d1d (patch)
tree32a2a0f3a844a6424518a0f341941d764d7bac31
parent954e251188621563b3b10218f4072cc358149e84 (diff)
downloadchat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.tar.gz
chat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.tar.bz2
chat-7c5c1d99ac3fce5648229de55103b06a438c6d1d.zip
Fixing accessing admin console without credentials (#3558)
-rw-r--r--webapp/components/logged_in.jsx3
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');
}
}