mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #34870 from overleaf/ii-share-modal-group-sharing
[web] Make group project sharing available to Group Professional plans only GitOrigin-RevId: ced66529818d573cfd20cef016ed4b3aafdd8d51
This commit is contained in:
@@ -574,19 +574,22 @@ const _ProjectController = {
|
||||
)
|
||||
).isMember)()
|
||||
: false,
|
||||
activeGroupSubscriptions:
|
||||
SubscriptionLocator.promises.getUserActiveGroupSubscriptions(userId, {
|
||||
_id: 1,
|
||||
teamName: 1,
|
||||
sharingPermissions: 1,
|
||||
}),
|
||||
activeProfessionalGroupSubscriptions:
|
||||
SubscriptionLocator.promises.getUserActiveProfessionalGroupSubscriptions(
|
||||
userId,
|
||||
{
|
||||
_id: 1,
|
||||
teamName: 1,
|
||||
sharingPermissions: 1,
|
||||
}
|
||||
),
|
||||
})
|
||||
|
||||
const {
|
||||
project,
|
||||
userValues,
|
||||
userIsMemberOfGroupSubscription,
|
||||
activeGroupSubscriptions,
|
||||
activeProfessionalGroupSubscriptions,
|
||||
} = responses
|
||||
|
||||
await Promise.all([
|
||||
@@ -976,7 +979,7 @@ const _ProjectController = {
|
||||
),
|
||||
isMemberOfGroupSubscription: userIsMemberOfGroupSubscription,
|
||||
hasInstitutionLicence: userHasInstitutionLicence,
|
||||
activeGroupSubscriptions,
|
||||
activeProfessionalGroupSubscriptions,
|
||||
},
|
||||
initialLoadingScreenTheme,
|
||||
userSettings,
|
||||
|
||||
Reference in New Issue
Block a user