diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js index cfa143ee0..1d713acc3 100644 --- a/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js +++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challengesjupyter.js @@ -183,8 +183,12 @@ class Challengesjupyter extends Component { render() { let{ChallengesDataList,booljupyterurls}=this.state; let id = this.props.match.params.shixunId; + //老师 const is_teacher = this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false; - + //运营人员 + const business = this.props&&this.props.current_user&&this.props.current_user.business?this.props.current_user.business:false; + //管理员 + const admin = this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false; return ( @@ -297,7 +301,7 @@ class Challengesjupyter extends Component { } </style> { - is_teacher===true? + is_teacher===true||admin===true||business===true? <div className="mt35"> <div className="pb47"> {