调整权限控制

dev_aliyun_beta
杨树明 5 years ago
parent d5f9fcac2b
commit 92bee12186

@ -119,11 +119,12 @@ class InfosBanner extends Component{
</li>} </li>}
{/*自己的主页且不是学生显示题库按钮*/} {/*自己的主页且不是学生显示题库按钮*/}
{ user_id===targetuserid&&user_type!="学生"?<li className={`${moduleName == 'topics' ? 'active' : '' }`}> {((is_current && current_user && current_user.is_teacher ) || current_user && current_user.admin)
&&<li className={`${moduleName == 'topics' ? 'active' : '' }`}>
<Link <Link
onClick={() => this.setState({moduleName: 'topics'})} onClick={() => this.setState({moduleName: 'topics'})}
to={`/users/${username}/topics/personal`}>题库</Link> to={`/users/${username}/topics/personal`}>题库</Link>
</li>:""} </li>}
</div> </div>
</div> </div>

Loading…
Cancel
Save