mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-01 05:11:34 +02: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'
|
||||
|
||||
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 =
|
||||
splitTestAssignments['overleaf-assist-bundle']?.variant === 'enabled'
|
||||
|
||||
@@ -833,7 +840,7 @@ const _ProjectController = {
|
||||
isTokenMember,
|
||||
isInvitedMember
|
||||
),
|
||||
capabilities: [...req.capabilitySet],
|
||||
capabilities,
|
||||
projectHistoryBlobsEnabled: Features.hasFeature(
|
||||
'project-history-blobs'
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user