diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index c63348c83..d6e2bf650 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -827,7 +827,7 @@ class Fileslists extends Component{ {this.props.isAdmin()?this.addDir()} className={"mr30 font-16"}>新建目录:""} {this.props.isAdmin()?parseInt(this.props.match.params.main_id)!=parseInt(this.props.coursesids)?this.editDir(name)} className={"mr30 font-16"}>目录重命名:"":""} - {this.props.isAdmin()||this.props.isStudent() ? this.addResource()}>选用资源:""} + {this.props.isAdmin()||this.props.isStudent() ? this.props.user&&this.props.user.main_site===true? this.addResource()}>选用资源:"":""} {this.props.isAdmin()||this.props.isStudent() ? this.sendResources()}>上传资源:""} }