mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Merge pull request #17167 from overleaf/jpa-hide-writefull-anon
[web] hide Writefull promotion for non-logged-in users GitOrigin-RevId: 945b0f3da4b3bbd64e71e10f40ab6f8320efb1cd
This commit is contained in:
@@ -600,7 +600,18 @@ const ProjectController = {
|
||||
SplitTestHandler.getAssignment(req, res, 'ide-page', cb)
|
||||
},
|
||||
writefullIntegrationAssignment(cb) {
|
||||
SplitTestHandler.getAssignment(req, res, 'writefull-integration', cb)
|
||||
if (anonymous) {
|
||||
// Disable allocation to split test for non-logged-in users.
|
||||
// The in-editor promotion is only relevant for logged-in users.
|
||||
cb()
|
||||
} else {
|
||||
SplitTestHandler.getAssignment(
|
||||
req,
|
||||
res,
|
||||
'writefull-integration',
|
||||
cb
|
||||
)
|
||||
}
|
||||
},
|
||||
compileLogEventsAssignment(cb) {
|
||||
SplitTestHandler.getAssignment(req, res, 'compile-log-events', cb)
|
||||
|
||||
Reference in New Issue
Block a user