diff --git a/src/forge/Settings/Setting.js b/src/forge/Settings/Setting.js index 7e31a98fc..cc4bcc038 100644 --- a/src/forge/Settings/Setting.js +++ b/src/forge/Settings/Setting.js @@ -29,14 +29,15 @@ class Setting extends Component { loading:true, project_units:['home',"activity","code"], divertVisible:false, - is_transfering:undefined, + is_transfering:undefined }; } componentDidUpdate=(prevPros)=>{ + if(prevPros && this.props && !this.props.checkIfLogin()){ this.props.history.push("/403") - return + return; } } componentDidMount = () => { @@ -233,6 +234,7 @@ class Setting extends Component { const { CategoryList, LanguageList, private_check ,loading , divertVisible , is_transfering, transfer } = this.state; let mirror = projectDetail && projectDetail.mirror; let type = projectDetail && projectDetail.type; + const forked_from_project_id = this.props && this.props.projectDetail && this.props.projectDetail.forked_from_project_id; return (
- 将仓库设为私有 + 将仓库设为私有 + { forked_from_project_id && (修改仓库的可见性,将会影响到该仓库下所有Fork仓库的可见性)} )}