From e929686502f2657c70fdb94cfa6c59ed03ed512f Mon Sep 17 00:00:00 2001 From: Phoenix Eliot Date: Tue, 23 Aug 2016 11:48:02 -0700 Subject: [PATCH] Enable session spectating for WebDev levels --- app/lib/LevelLoader.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/lib/LevelLoader.coffee b/app/lib/LevelLoader.coffee index 00c834bd9..88cc35fe5 100644 --- a/app/lib/LevelLoader.coffee +++ b/app/lib/LevelLoader.coffee @@ -153,7 +153,8 @@ module.exports = class LevelLoader extends CocoClass url += "?course=#{@courseID}" if @courseID session = new LevelSession().setURL url - session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state', 'submittedCode'] if @headless + if @headless and not @level.isType('web-dev') + session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state', 'submittedCode'] @sessionResource = @supermodel.loadModel(session, 'level_session', {cache: false}) @session = @sessionResource.model if @opponentSessionID