This commit is contained in:
caishi 2021-01-12 09:30:30 +08:00
parent c68a3dbd6f
commit 5a6b7bd717
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ if (isDev) {
} }
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' : window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '15243705227' window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'p86402359'
} }
function clearAllCookie() { function clearAllCookie() {
cookie.remove('_educoder_session', { path: '/' }); cookie.remove('_educoder_session', { path: '/' });

View File

@ -192,7 +192,7 @@ class Detail extends Component {
platform:result.data.platform && result.data.platform !== 'educoder' platform:result.data.platform && result.data.platform !== 'educoder'
}) })
let signa = result.data.user_apply_signatures && result.data.user_apply_signatures[0]; let signa = result.data.user_apply_signatures && result.data.user_apply_signatures[0];
if(result.data.is_secret && (!signa || (signa && signa.status !== "passed")) && user.login !== owner){ if(result.data.is_secret && !result.data.is_member && (!signa || (signa && signa.status !== "passed")) && user.login !== owner){
this.setState({ this.setState({
visible:true, visible:true,
is_secret:result.data.is_secret, is_secret:result.data.is_secret,