diff --git a/src/AppConfig.js b/src/AppConfig.js index e271ed76..82a5cb78 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -27,7 +27,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : window.location.search.indexOf('debug=s') !== -1 ? 'student' : - window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '15243705227' } function clearAllCookie() { cookie.remove('_educoder_session', { path: '/' }); diff --git a/src/forge/Main/IndexItem.js b/src/forge/Main/IndexItem.js index 3441b76e..30979954 100644 --- a/src/forge/Main/IndexItem.js +++ b/src/forge/Main/IndexItem.js @@ -26,7 +26,6 @@ class IndexItem extends Component { projectHref=(link , user_apply_signatures,project_id,is_secret , id)=>{ const { user , showLoginDialog } = this.props; - debugger; if(is_secret && (!user || (user && !user.login))){ showLoginDialog(); return; diff --git a/src/forge/Settings/Index.js b/src/forge/Settings/Index.js index 2196018e..1fecef5c 100644 --- a/src/forge/Settings/Index.js +++ b/src/forge/Settings/Index.js @@ -43,8 +43,8 @@ const ManageNew = Loadable({ class Index extends Component { render() { const { projectsId , owner } = this.props.match.params; - const { user } = this.props; const { pathname } = this.props.history.location; + const { projectDetail } = this.props; const flag = pathname === `/projects/${owner}/${projectsId}/setting`; return ( @@ -93,7 +93,7 @@ class Index extends Component {
{ - user && user.login === owner ? + projectDetail && projectDetail.permission && projectDetail.permission === "Owner" ?