ws-office/patches/server/0001-fix-licence-on-8.2.2.p...

76 lines
2.4 KiB
Diff

From 89906da95f777d1fd093dddeb39ea30821288723 Mon Sep 17 00:00:00 2001
From: Fabrice <fabrice.roublot@workstreams.ch>
Date: Tue, 28 Jan 2025 12:29:01 +0100
Subject: [PATCH] fix licence on 8.2.2
---
Common/sources/constants.js | 4 ++--
Common/sources/license.js | 16 ++++++++--------
Makefile | 2 +-
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/Common/sources/constants.js b/Common/sources/constants.js
index 700696ff..fa308911 100644
--- a/Common/sources/constants.js
+++ b/Common/sources/constants.js
@@ -87,8 +87,8 @@ exports.LICENSE_RESULT = {
NotBefore: 16
};
-exports.LICENSE_CONNECTIONS = 20;
-exports.LICENSE_USERS = 3;
+exports.LICENSE_CONNECTIONS = 9999;
+exports.LICENSE_USERS = 9999;
exports.LICENSE_EXPIRE_USERS_ONE_DAY = 24 * 60 * 60; // day in seconds
exports.AVS_OFFICESTUDIO_FILE_UNKNOWN = 0x0000;
diff --git a/Common/sources/license.js b/Common/sources/license.js
index 8813cbac..37aba586 100644
--- a/Common/sources/license.js
+++ b/Common/sources/license.js
@@ -46,20 +46,20 @@ exports.readLicense = async function () {
type: c_LR.Success,
packageType: constants.PACKAGE_TYPE_OS,
mode: constants.LICENSE_MODE.None,
- branding: false,
+ branding: true,
connections: constants.LICENSE_CONNECTIONS,
connectionsView: constants.LICENSE_CONNECTIONS,
- customization: false,
- advancedApi: false,
- usersCount: 0,
- usersViewCount: 0,
+ customization: true,
+ advancedApi: true,
+ usersCount: constants.LICENSE_CONNECTIONS,
+ usersViewCount: constants.LICENSE_CONNECTIONS,
usersExpire: constants.LICENSE_EXPIRE_USERS_ONE_DAY,
- hasLicense: false,
+ hasLicense: true,
buildDate: oBuildDate,
startDate: startDate,
- endDate: null,
+ endDate: new Date("2099-01-01T23:59:59.000Z"),
customerId: "",
- alias: ""
+ alias: "community"
}, null];
};
diff --git a/Makefile b/Makefile
index e8e1308f..3967dacb 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,7 @@ DEBUG = $(BRANDING_DIR)/debug.js
.PHONY: all clean install uninstall build-date
.NOTPARALLEL:
-all: $(SPELLCHECKER_DICTIONARIES) $(TOOLS) $(SCHEMA) $(CORE_FONTS) $(DOCUMENT_TEMPLATES) $(LICENSE) $(WELCOME) $(INFO) build-date
++all: $(SCHEMA) $(LICENSE) $(WELCOME) $(INFO) build-date
build-date: $(GRUNT_FILES)
sed "s|\(const buildVersion = \).*|\1'${PRODUCT_VERSION}';|" -i $(COMMON_DEFINES_JS)
--
2.30.2