mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 06:33:55 +01:00
Use hard-coded feature flag for rich text
This commit is contained in:
@@ -28,6 +28,7 @@ Modules = require '../../infrastructure/Modules'
|
||||
ProjectEntityHandler = require './ProjectEntityHandler'
|
||||
crypto = require 'crypto'
|
||||
{ V1ConnectionError } = require '../Errors/Errors'
|
||||
Features = require('../../Infrastructure/Features')
|
||||
|
||||
module.exports = ProjectController =
|
||||
|
||||
@@ -344,7 +345,7 @@ module.exports = ProjectController =
|
||||
themes: THEME_LIST
|
||||
maxDocLength: Settings.max_doc_length
|
||||
useV2History: !!project.overleaf?.history?.display
|
||||
showRichText: req.query?.rt == 'true'
|
||||
richTextEnabled: Features.richTextEnabled()
|
||||
showTestControls: req.query?.tc == 'true' || user.isAdmin
|
||||
showPublishModal: req.query?.pm == 'true'
|
||||
timer.done()
|
||||
|
||||
Reference in New Issue
Block a user