mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #26556 from overleaf/add-chat-capability-sp
[web] Populate `chat` capability for CE/SP GitOrigin-RevId: d9a3a9f6540552ad47b0c937115d0cf6318c49e9
This commit is contained in:
@@ -728,6 +728,13 @@ const _ProjectController = {
|
|||||||
? 'project/ide-react-detached'
|
? 'project/ide-react-detached'
|
||||||
: 'project/ide-react'
|
: 'project/ide-react'
|
||||||
|
|
||||||
|
const capabilities = [...req.capabilitySet]
|
||||||
|
|
||||||
|
// make sure the capability is added to CE/SP when the feature is enabled
|
||||||
|
if (!Features.hasFeature('saas') && Features.hasFeature('chat')) {
|
||||||
|
capabilities.push('chat')
|
||||||
|
}
|
||||||
|
|
||||||
const isOverleafAssistBundleEnabled =
|
const isOverleafAssistBundleEnabled =
|
||||||
splitTestAssignments['overleaf-assist-bundle']?.variant === 'enabled'
|
splitTestAssignments['overleaf-assist-bundle']?.variant === 'enabled'
|
||||||
|
|
||||||
@@ -833,7 +840,7 @@ const _ProjectController = {
|
|||||||
isTokenMember,
|
isTokenMember,
|
||||||
isInvitedMember
|
isInvitedMember
|
||||||
),
|
),
|
||||||
capabilities: [...req.capabilitySet],
|
capabilities,
|
||||||
projectHistoryBlobsEnabled: Features.hasFeature(
|
projectHistoryBlobsEnabled: Features.hasFeature(
|
||||||
'project-history-blobs'
|
'project-history-blobs'
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user