Merge pull request #7547 from overleaf/jpa-fix-split-test-anonymous-users

[web] bring back split test assignments for anonymous users

GitOrigin-RevId: 4759de31e097fee1493f90a3290339e38de5b3c8
This commit is contained in:
Jakob Ackermann 2022-04-12 15:04:02 +01:00 committed by Copybot
parent a110c4d7bd
commit 693c8e1429

View file

@ -195,9 +195,9 @@ async function _getAssignmentMetadata(analyticsId, user, splitTest) {
const currentVersion = splitTest.getCurrentVersion()
const phase = currentVersion.phase
if (
!user ||
(phase === ALPHA_PHASE && !user.alphaProgram) ||
(phase === BETA_PHASE && !user.betaProgram)
user &&
((phase === ALPHA_PHASE && !user.alphaProgram) ||
(phase === BETA_PHASE && !user.betaProgram))
) {
return {
activeForUser: false,