From f37040e4a4798d8f1daf0d8213c28fade38b1d6a Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 13 Sep 2018 12:09:03 +0100 Subject: [PATCH] Only redirect if has overleaf setting --- .../coffee/Features/TokenAccess/TokenAccessController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/app/coffee/Features/TokenAccess/TokenAccessController.coffee b/services/web/app/coffee/Features/TokenAccess/TokenAccessController.coffee index 9e35c622b0..08aa4663f1 100644 --- a/services/web/app/coffee/Features/TokenAccess/TokenAccessController.coffee +++ b/services/web/app/coffee/Features/TokenAccess/TokenAccessController.coffee @@ -17,7 +17,7 @@ module.exports = TokenAccessController = logger.err {err, token, userId}, "[TokenAccess] error finding project with higher access" return next(err) - if !projectExists + if !projectExists and settings.overleaf logger.log {token, userId}, "[TokenAccess] no project found for this token" # Project does not exist, but may be unimported - try it on v1