🐛fetchNextLevel req.user null check

This commit is contained in:
Matt Lott 2016-06-28 09:44:58 -07:00
parent fe1598cab2
commit 1685e92f6e

View file

@ -72,6 +72,7 @@ module.exports =
fetchNextLevel: wrap (req, res) ->
unless req.user? then return res.status(200).send({})
levelOriginal = req.params.levelOriginal
unless database.isID(levelOriginal) then throw new errors.UnprocessableEntity('Invalid level original ObjectId')
sessionID = req.params.sessionID