|
|
|
@ -243,10 +243,9 @@ class VideoIndex extends Component{
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
const { videos , upload , videoData , type , liveData , lives , page , liveVisible , isSpining , liveId , otherLinkVisible,statistics } = this.state;
|
|
|
|
|
const { is_teacher } = this.props.user;
|
|
|
|
|
const { coursesId , videoId }=this.props.match.params;
|
|
|
|
|
|
|
|
|
|
const {course_identity} = this.props.coursedata;
|
|
|
|
|
let course_identity = this.props&&this.props.coursedata;
|
|
|
|
|
let is_teacher = this.props&&this.props.user;
|
|
|
|
|
const flag = parseInt(course_identity) < 5;
|
|
|
|
|
const newOperation = flag;
|
|
|
|
|
const new_upload = flag && (is_teacher && this.props.checkIfProfessionalCertification());
|
|
|
|
|