diff --git a/services/web/app/src/Features/Subscription/SubscriptionController.js b/services/web/app/src/Features/Subscription/SubscriptionController.js index c5e013397a..8417c9f99c 100644 --- a/services/web/app/src/Features/Subscription/SubscriptionController.js +++ b/services/web/app/src/Features/Subscription/SubscriptionController.js @@ -285,8 +285,10 @@ async function userSubscriptionPage(req, res) { const groupPlansDataForDash = formatGroupPlansDataForDash() const groupSettingsEnabledFor = (managedGroupSubscriptions || []) - .map(sub => sub._id.toString()) - .filter(id => ManagedUsersManager.hasManagedUsersFeature(id)) + .filter(subscription => + ManagedUsersManager.hasManagedUsersFeature(subscription) + ) + .map(subscription => subscription._id.toString()) const data = { title: 'your_subscription', diff --git a/services/web/app/src/models/Subscription.js b/services/web/app/src/models/Subscription.js index 5e17f2f099..a4d0393f0b 100644 --- a/services/web/app/src/models/Subscription.js +++ b/services/web/app/src/models/Subscription.js @@ -31,6 +31,7 @@ const SubscriptionSchema = new Schema( groupPlan: { type: Boolean, default: false }, membersLimit: { type: Number, default: 0 }, customAccount: Boolean, + features: { managedUsers: { type: Boolean, default: false } }, overleaf: { id: { type: Number,