From 88331582c3fa8c3d084832bd41f1babff8b01081 Mon Sep 17 00:00:00 2001 From: Paulo Jorge Reis Date: Thu, 3 Dec 2020 10:10:56 +0000 Subject: [PATCH] Merge pull request #3438 from overleaf/jel-fix-anonymous Fix anonymous editor viewing GitOrigin-RevId: 843ddac4491454bee73821a03068d304649ab30b --- services/web/app/src/Features/Project/ProjectController.js | 4 +++- services/web/app/views/project/editor/pdf.pug | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index 737b15f02c..4b21d76584 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -1045,7 +1045,9 @@ var defaultSettingsForAnonymousUser = userId => ({ }, featureSwitches: { github: false - } + }, + alphaProgram: false, + betaProgram: false }) var THEME_LIST = [] diff --git a/services/web/app/views/project/editor/pdf.pug b/services/web/app/views/project/editor/pdf.pug index 4ab1f55395..a1381dbf39 100644 --- a/services/web/app/views/project/editor/pdf.pug +++ b/services/web/app/views/project/editor/pdf.pug @@ -403,5 +403,5 @@ script(type='text/ng-template', id='clearCacheModalTemplate') span(ng-show="!state.inflight") #{translate("clear_cache")} span(ng-show="state.inflight") #{translate("clearing")}… -script. - window.showNewLogsUI = #{showNewLogsUI} +script(type="text/javascript"). + window.showNewLogsUI = '#{showNewLogsUI}'