mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
[web] add migration for back-filling db.users.labsProgram=false (#34632)
* [web] add migration for back-filling db.users.labsProgram=false Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com> * [web] include user.labsProgram=false in session --------- Co-authored-by: Andrew Rumble <andrew.rumble@overleaf.com> GitOrigin-RevId: 0b3322007f6a36d2999d646869dc84f2c6ad4d2d
This commit is contained in:
committed by
Copybot
co-authored by
Andrew Rumble
parent
cb9e834a1f
commit
f2ebe46506
@@ -109,7 +109,7 @@ const AuthenticationController = {
|
||||
analyticsId: user.analyticsId || user._id,
|
||||
alphaProgram: user.alphaProgram || undefined, // only store if set
|
||||
betaProgram: user.betaProgram || undefined, // only store if set
|
||||
labsProgram: user.labsProgram || undefined, // only store if set
|
||||
labsProgram: user.labsProgram, // always store, we could revert about 1 week after deploying this change.
|
||||
}
|
||||
if (user.isAdmin) {
|
||||
lightUser.isAdmin = true
|
||||
|
||||
Reference in New Issue
Block a user