Преглед изворни кода

Make publishing and viewing templates separate features

James Allen пре 8 година
родитељ
комит
ff506b2b03
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      services/web/app/coffee/infrastructure/Features.coffee

+ 3 - 1
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?