调整权限

dev_hss
杨树明 5 years ago
parent 478e23d739
commit 2d8b5196b4

@ -70,6 +70,14 @@ class InfosTopics extends Component{
// }else{
//
// }
let types=this.props.match.params.topicstype;
let professional_certification=this.props.current_user&&this.props.current_user.professional_certification;
if(professional_certification===false&&types==="publicly"){
}else{
this.setState({
isSpin:true
})
@ -77,9 +85,9 @@ class InfosTopics extends Component{
let user_id="";
if(types==="publicly"){
user_id=this.props.current_user&&this.props.current_user.login;
user_id=this.props.current_user&&this.props.current_user.login;
}else{
user_id=this.props.match.params&&this.props.match.params.username;
user_id=this.props.match.params&&this.props.match.params.username;
}
@ -112,6 +120,8 @@ class InfosTopics extends Component{
})
});
}
}
searchCategory=(type)=>{

Loading…
Cancel
Save