Only redirect if has overleaf setting

This commit is contained in:
Alasdair Smith 2018-09-13 12:09:03 +01:00
parent 8a969d1c25
commit f37040e4a4

View file

@ -17,7 +17,7 @@ module.exports = TokenAccessController =
logger.err {err, token, userId}, logger.err {err, token, userId},
"[TokenAccess] error finding project with higher access" "[TokenAccess] error finding project with higher access"
return next(err) return next(err)
if !projectExists if !projectExists and settings.overleaf
logger.log {token, userId}, logger.log {token, userId},
"[TokenAccess] no project found for this token" "[TokenAccess] no project found for this token"
# Project does not exist, but may be unimported - try it on v1 # Project does not exist, but may be unimported - try it on v1