mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-28 00:11:26 +00:00
Do not include the Licence ending in domain invites
So the message reads like "University of Notre Dame has invited you to join a team on Overleaf" instead of ""University of Notre Dame licence..."
This commit is contained in:
parent
88d12b43ac
commit
d1b1e6c299
1 changed files with 3 additions and 1 deletions
|
@ -41,9 +41,11 @@ module.exports = TeamInvitesHandler =
|
|||
|
||||
createDomainInvite: (user, licence, callback) ->
|
||||
logger.log {licence, email: user.email}, "Creating domain team invite"
|
||||
inviterName = licence.name.replace(/\s+licence$/i, licence.name)
|
||||
|
||||
SubscriptionLocator.getSubscription licence.subscription_id, (error, subscription) ->
|
||||
return callback(error) if error?
|
||||
createInvite(subscription, user.email, licence.name, callback)
|
||||
createInvite(subscription, user.email, inviterName, callback)
|
||||
|
||||
acceptInvite: (token, userId, callback) ->
|
||||
logger.log {userId}, "Accepting invite"
|
||||
|
|
Loading…
Reference in a new issue