Show admin email in enrollment page accessed via dashboard notification and email invitation.

GitOrigin-RevId: 4589a276a1b7db2ba0a5da2c06bde797ba8d0b65
This commit is contained in:
M Fahru 2023-08-09 13:57:19 -07:00 committed by Copybot
parent a2322f090a
commit c71bf25363
3 changed files with 11 additions and 1 deletions

View file

@ -100,11 +100,20 @@ async function viewInvite(req, res, next) {
subscription,
})
let currentManagedUserAdminEmail
try {
currentManagedUserAdminEmail =
await SubscriptionLocator.promises.getAdminEmail(subscription._id)
} catch (err) {
logger.error({ err }, 'error getting subscription admin email')
}
return res.render('subscriptions/team/invite-managed', {
inviterName: invite.inviterName,
inviteToken: invite.token,
expired: req.query.expired,
validationStatus: Object.fromEntries(validationStatus),
currentManagedUserAdminEmail,
})
} else {
let currentManagedUserAdminEmail

View file

@ -9,6 +9,7 @@ block append meta
meta(name="ol-expired" data-type="boolean" content=expired)
meta(name="ol-alreadyEnrolled" data-type="boolean" content=alreadyEnrolled)
meta(name="ol-validationStatus" data-type="json" content=validationStatus)
meta(name="ol-currentManagedUserAdminEmail" data-type="string" content=currentManagedUserAdminEmail)
block content
main.content.content-alt.team-invite#invite-managed-root

View file

@ -694,7 +694,7 @@
"group_admins_get_access_to": "Group admins get access to",
"group_admins_get_access_to_info": "Special features available only on group plans.",
"group_full": "This group is already full",
"group_managed_by_group_administrator": "This group is managed by the group administrator",
"group_managed_by_group_administrator": "This group is managed by the group administrator (__admin__)",
"group_members_and_collaborators_get_access_to": "Group members and their project collaborators get access to",
"group_members_and_collaborators_get_access_to_info": "These features are available to group members and their collaborators (other Overleaf users invited to projects owned a group member).",
"group_members_get_access_to": "Group members get access to",