mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01: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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user