Merge pull request #34605 from overleaf/tm-request-access-redesign

[WEB] Request edit access in the new share modal

GitOrigin-RevId: d01cf4d038d5ce07c34deac0714b0cdad02136be
This commit is contained in:
Thomas
2026-09-17 11:34:55 +00:00
committed by Copybot
parent fc40c1f8a4
commit 3fb3baf03a
31 changed files with 2340 additions and 40 deletions
@@ -956,6 +956,16 @@ const _ProjectController = {
await Modules.promises.hooks.fire('assignLabsSplitTests', req, res)
}
// "Request edit access" is gated on the project owner's
// `sharing-updates` bucket so a viewer outside the experiment can
// still ask whenever the owner can act on it inside the new
// share modal.
const ownerHasSharingUpdates =
await SplitTestHandler.promises.featureFlagEnabledForUser(
project.owner_ref.toString(),
'sharing-updates'
)
res.render(template, {
title: project.name,
priority_title: true,
@@ -1052,6 +1062,7 @@ const _ProjectController = {
},
standardPlanPricing,
recommendedCurrency,
ownerHasSharingUpdates,
})
timer.done()
} catch (err) {