From f8fb7238d284d37e7ad2fc9de562e172d2293583 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 3 Mar 2025 14:27:30 +0100 Subject: [PATCH] Fix teams limit issue --- src/common/common-constants.js | 2 +- www/common/common-constants.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/common-constants.js b/src/common/common-constants.js index 7f224a080..bae268b25 100644 --- a/src/common/common-constants.js +++ b/src/common/common-constants.js @@ -29,7 +29,7 @@ const factory = function (AppConfig = {}) { MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 5, MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 5, MAX_PREMIUM_TEAMS_SLOTS: Math.max(AppConfig.maxTeamsSlots || 0, AppConfig.maxPremiumTeamsSlots || 0) || 5, - MAX_PREMIUM_TEAMS_OWNED: Math.max(AppConfig.maxTeamsOwned || 0, AppConfig.maxPremiumTeamsOwned || 0) || 5, + MAX_PREMIUM_TEAMS_OWNED: Math.max(AppConfig.maxOwnedTeams || 0, AppConfig.maxPremiumTeamsOwned || 0) || 5, // Apps criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications', 'calendar', 'moderation', 'oldadmin'], // XXX oldadmin earlyAccessApps: ['doc', 'presentation'] diff --git a/www/common/common-constants.js b/www/common/common-constants.js index 7f224a080..bae268b25 100644 --- a/www/common/common-constants.js +++ b/www/common/common-constants.js @@ -29,7 +29,7 @@ const factory = function (AppConfig = {}) { MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 5, MAX_TEAMS_OWNED: AppConfig.maxOwnedTeams || 5, MAX_PREMIUM_TEAMS_SLOTS: Math.max(AppConfig.maxTeamsSlots || 0, AppConfig.maxPremiumTeamsSlots || 0) || 5, - MAX_PREMIUM_TEAMS_OWNED: Math.max(AppConfig.maxTeamsOwned || 0, AppConfig.maxPremiumTeamsOwned || 0) || 5, + MAX_PREMIUM_TEAMS_OWNED: Math.max(AppConfig.maxOwnedTeams || 0, AppConfig.maxPremiumTeamsOwned || 0) || 5, // Apps criticalApps: ['profile', 'settings', 'debug', 'admin', 'support', 'notifications', 'calendar', 'moderation', 'oldadmin'], // XXX oldadmin earlyAccessApps: ['doc', 'presentation']