|
|
|
@ -261,7 +261,7 @@ class NewHeader extends Component {
|
|
|
|
|
|
|
|
|
|
if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null||this.props.current_user&&this.props.current_user=== ""){
|
|
|
|
|
window.location.href = "/login";
|
|
|
|
|
}else if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user=== ""){
|
|
|
|
|
}else if(this.state.current_user=== ""){
|
|
|
|
|
window.location.href = "/login";
|
|
|
|
|
}else if(sum===1){
|
|
|
|
|
window.location.href = "/courses/new";
|
|
|
|
|