Merge pull request #33717 from overleaf/as-new-link-sharing-pass-groups

[web] Pass project owner link sharing settings to frontend

GitOrigin-RevId: ff000f38ef36a3d448a2934d0c5963139852eee2
This commit is contained in:
MoxAmber
2026-06-12 08:06:12 +00:00
committed by Copybot
parent adf1659c59
commit 886985d91c
15 changed files with 128 additions and 49 deletions
@@ -572,9 +572,20 @@ const _ProjectController = {
)
).isMember)()
: false,
activeGroupSubscriptions:
SubscriptionLocator.promises.getUserActiveGroupSubscriptions(userId, {
_id: 1,
teamName: 1,
sharingPermissions: 1,
}),
})
const { project, userValues, userIsMemberOfGroupSubscription } = responses
const {
project,
userValues,
userIsMemberOfGroupSubscription,
activeGroupSubscriptions,
} = responses
await Promise.all([
InactiveProjectManager.promises.reactivateProjectIfRequired(project),
@@ -959,6 +970,7 @@ const _ProjectController = {
),
isMemberOfGroupSubscription: userIsMemberOfGroupSubscription,
hasInstitutionLicence: userHasInstitutionLicence,
activeGroupSubscriptions,
},
initialLoadingScreenTheme,
userSettings,