mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-22 02:04:31 +00: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:
parent
2606c76aec
commit
7f7443356c
1 changed files with 5 additions and 3 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue