mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-25 02:00:10 +02:00
Merge pull request #12738 from overleaf/mj-disable-ace-beta-users
[web] Hide Ace editor for beta users GitOrigin-RevId: 7e359823429656862c4701e55686ebfd3f1f7a36
This commit is contained in:
@@ -1275,9 +1275,11 @@ const ProjectController = {
|
||||
|
||||
const showLegacySourceEditor =
|
||||
!Features.hasFeature('saas') ||
|
||||
legacySourceEditorAssignment.variant === 'default' ||
|
||||
// Also allow override via legacy_source_editor=true in query string
|
||||
shouldDisplayFeature('legacy_source_editor')
|
||||
// Allow override via legacy_source_editor=true in query string
|
||||
shouldDisplayFeature('legacy_source_editor') ||
|
||||
// Hide Ace for beta users
|
||||
(!user.betaProgram &&
|
||||
legacySourceEditorAssignment.variant === 'default')
|
||||
|
||||
const editorLeftMenuReact =
|
||||
editorLeftMenuAssignment?.variant === 'react'
|
||||
|
||||
Reference in New Issue
Block a user