mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-10 06:39:01 +02:00
Update Overleaf assist paywall to reflect group and institution licensing (#24061)
GitOrigin-RevId: 5df447febb845ed60ddb04428d7f6a0375f351f7
This commit is contained in:
committed by
Copybot
parent
08882c63df
commit
42ddbb6eb3
@@ -772,6 +772,11 @@ const _ProjectController = {
|
||||
isOverleafAssistBundleEnabled &&
|
||||
(await ProjectController._getAddonPrices(req, res))
|
||||
|
||||
let planCode = subscription?.planCode
|
||||
if (!planCode && !userInNonIndividualSub) {
|
||||
planCode = 'free'
|
||||
}
|
||||
|
||||
res.render(template, {
|
||||
title: project.name,
|
||||
priority_title: true,
|
||||
@@ -801,6 +806,9 @@ const _ProjectController = {
|
||||
labsProgram: user.labsProgram,
|
||||
inactiveTutorials: TutorialHandler.getInactiveTutorials(user),
|
||||
isAdmin: hasAdminAccess(user),
|
||||
planCode,
|
||||
isMemberOfGroupSubscription: userIsMemberOfGroupSubscription,
|
||||
hasInstitutionLicence: userHasInstitutionLicence,
|
||||
},
|
||||
userSettings: {
|
||||
mode: user.ace.mode,
|
||||
@@ -876,7 +884,6 @@ const _ProjectController = {
|
||||
isOverleafAssistBundleEnabled,
|
||||
paywallPlans,
|
||||
addonPrices,
|
||||
planCode: subscription?.planCode,
|
||||
})
|
||||
timer.done()
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user