Make the number of teams and owned teams configurable

This commit is contained in:
yflory
2019-10-15 18:02:11 +02:00
parent e6eb3554d6
commit 8db0fcf8bd
3 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
define(function () {
define(['/customize/application_config.js'], function (AppConfig) {
return {
// localStorage
userHashKey: 'User_hash',
@@ -16,7 +16,8 @@ define(function () {
tokenKey: 'loginToken',
displayPadCreationScreen: 'displayPadCreationScreen',
deprecatedKey: 'deprecated',
MAX_TEAMS_SLOTS: 3,
MAX_TEAMS_SLOTS: AppConfig.maxTeamsSlots || 3,
MAX_TEAMS_OWNED: AppConfig.maxTeamsOwned || 1,
// Sub
plan: 'CryptPad_plan',
// Apps