use a separate flag for reading from history

the overleaf.history object controls writing to the project history
service, we need a separate flag to determine whether to read from it or
from track changes.
This commit is contained in:
Brian Gough 2017-11-23 15:14:33 +00:00
parent 17a180ea8e
commit 98fe352a8c

View file

@ -33,7 +33,7 @@ module.exports = HistoryController =
# find out which type of history service this project uses
ProjectDetailsHandler.getDetails project_id, (err, project) ->
return next(err) if err?
if project?.overleaf?.history?
if project?.overleaf?.history?.display
req.useProjectHistory = true
else
req.useProjectHistory = false