diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 5a414b66..99021dc2 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -262,7 +262,7 @@ class NewHeader extends Component { if(this.props.user&&this.props.user.login=== ""||this.props.user&&this.props.user===null){ window.location.href = "/login"; return - }else if(this.state.current_user&&this.props.user.login=== ""||this.props.user&&this.props.user===null){ + }else if(this.state.current_user&&this.state.current_user.login=== ""||this.state.current_user&&this.state.current_user===null){ window.location.href = "/login"; return } @@ -312,7 +312,7 @@ class NewHeader extends Component { - console.log(this.props.current_user&&this.props.current_user.login=== "") + console.log(this.props.user&&this.props.user.is_student=== true||this.props.current_user&&this.props.current_user.is_student==true) console.log(this.state.current_user) // console.log(match.path.startsWith("/ec_courses")) return ( @@ -481,7 +481,10 @@ class NewHeader extends Component {