mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
remove hasRoles
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user