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