remove hasRoles

This commit is contained in:
riley committed 2017-05-12 09:57:07 -06:00
1 parent 14b483d089
commit e32ab99edf
8 files changed
+87 -27

No files matched your search

@@ -27,7 +27,7 @@ class LayoutContainer extends Component {
const {handleLogout, toggleShortcutModal, TALK_RECAPTCHA_PUBLIC} = this.props;
if (loadingUser) { return <FullLoading />; }
if (roleUtils.canAccessAdmin(user)) {
if (!loggedIn) {
return <AdminLogin
loginMaxExceeded={loginMaxExceeded}
handleLogin={this.props.handleLogin}