mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #32033 from overleaf/ii-project-sharing-admin-page
[web] Sharing permissions group admin page GitOrigin-RevId: 97baeeca9ca33cec043badcae2affdd954081ef2
This commit is contained in:
@@ -178,6 +178,7 @@ function formatGroupPlansDataForDash() {
|
||||
|
||||
async function userSubscriptionPage(req, res) {
|
||||
const user = SessionManager.getSessionUser(req.session)
|
||||
await SplitTestHandler.promises.getAssignment(req, res, 'sharing-updates')
|
||||
await SplitTestHandler.promises.getAssignment(req, res, 'pause-subscription')
|
||||
await SplitTestHandler.promises.getAssignment(
|
||||
req,
|
||||
|
||||
@@ -112,6 +112,18 @@ export const SubscriptionSchema = new Schema(
|
||||
},
|
||||
},
|
||||
ssoConfig: { type: ObjectId, ref: 'SSOConfig' },
|
||||
sharingPermissions: {
|
||||
byEmail: {
|
||||
type: String,
|
||||
enum: ['anyone_in_x', 'anyone'],
|
||||
default: 'anyone',
|
||||
},
|
||||
byLinkSharing: {
|
||||
type: String,
|
||||
enum: ['no_one', 'anyone_in_x', 'anyone'],
|
||||
default: 'anyone',
|
||||
},
|
||||
},
|
||||
},
|
||||
{ minimize: false }
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user