From 7216d35174441e777b6722949ee6e799968d93ae Mon Sep 17 00:00:00 2001 From: M Fahru Date: Tue, 12 Sep 2023 09:49:51 -0700 Subject: [PATCH] Fix invite url is not passed correctly to managed users invitation emails GitOrigin-RevId: f334215a7c83088df175467561d41537cfe9e2a8 --- .../web/app/src/Features/Subscription/ManagedUsersHandler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/web/app/src/Features/Subscription/ManagedUsersHandler.js b/services/web/app/src/Features/Subscription/ManagedUsersHandler.js index 4e6bfd1581..e07fd7f769 100644 --- a/services/web/app/src/Features/Subscription/ManagedUsersHandler.js +++ b/services/web/app/src/Features/Subscription/ManagedUsersHandler.js @@ -4,6 +4,7 @@ const { GroupPolicy } = require('../../models/GroupPolicy') const { User } = require('../../models/User') const ManagedUsersPolicy = require('./ManagedUsersPolicy') const OError = require('@overleaf/o-error') +const settings = require('@overleaf/settings') const { UserNotFoundError, SubscriptionNotFoundError, @@ -176,6 +177,7 @@ async function _sendEmailToGroupMembers(subscriptionId) { to: recipient.email, admin: subscription.admin_id, groupName: subscription.teamName, + acceptInviteUrl: `${settings.siteUrl}/subscription/${subscriptionId}/enrollment/`, } EmailHandler.sendDeferredEmail( 'surrenderAccountForManagedUsers',