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