mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
[web] Ignore chat capability in CE/SP (#23297)
* [web] Ignore chat capability in CE/SP
* Allow usage of hasFeature('chat') for testing in saas
GitOrigin-RevId: 4ab5ffe2142353322e7955463f1beca524113d42
This commit is contained in:
@@ -734,6 +734,14 @@ const _ProjectController = {
|
||||
? 'project/ide-react-detached'
|
||||
: 'project/ide-react'
|
||||
|
||||
let chatEnabled
|
||||
if (Features.hasFeature('saas')) {
|
||||
chatEnabled =
|
||||
Features.hasFeature('chat') && req.capabilitySet.has('chat')
|
||||
} else {
|
||||
chatEnabled = Features.hasFeature('chat')
|
||||
}
|
||||
|
||||
res.render(template, {
|
||||
title: project.name,
|
||||
priority_title: true,
|
||||
@@ -787,8 +795,7 @@ const _ProjectController = {
|
||||
isTokenMember,
|
||||
isInvitedMember
|
||||
),
|
||||
chatEnabled:
|
||||
Features.hasFeature('chat') && req.capabilitySet.has('chat'),
|
||||
chatEnabled,
|
||||
projectHistoryBlobsEnabled: Features.hasFeature(
|
||||
'project-history-blobs'
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user