From ff506b2b0330370c0fed3cc5dd89921fb624fbd2 Mon Sep 17 00:00:00 2001 From: James Allen Date: Fri, 10 Aug 2018 17:16:49 +0100 Subject: [PATCH] Make publishing and viewing templates separate features --- services/web/app/coffee/infrastructure/Features.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/app/coffee/infrastructure/Features.coffee b/services/web/app/coffee/infrastructure/Features.coffee index ffc60604e6..1c8a6337d9 100644 --- a/services/web/app/coffee/infrastructure/Features.coffee +++ b/services/web/app/coffee/infrastructure/Features.coffee @@ -18,7 +18,9 @@ module.exports = Features = return Settings.showV2Banner when 'custom-togglers' return Settings.overleaf? - when 'templates' + when 'publish-templates' + return true + when 'view-templates' return !Settings.overleaf? when 'affiliations' return Settings?.apis?.v1?.url?