diff --git a/public/react/src/modules/user/usersInfo/InfosBanner.js b/public/react/src/modules/user/usersInfo/InfosBanner.js index c28bff9db..c2f2c7ff4 100644 --- a/public/react/src/modules/user/usersInfo/InfosBanner.js +++ b/public/react/src/modules/user/usersInfo/InfosBanner.js @@ -119,11 +119,12 @@ class InfosBanner extends Component{ } {/*自己的主页且不是学生显示题库按钮*/} - { user_id===targetuserid&&user_type!="学生"?
  • + {((is_current && current_user && current_user.is_teacher ) || current_user && current_user.admin) + &&
  • this.setState({moduleName: 'topics'})} to={`/users/${username}/topics/personal`}>题库 -
  • :""} + }