28 lines
1.4 KiB
Diff
28 lines
1.4 KiB
Diff
diff --git a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
|
index d788504c..df83518d 100644
|
|
--- a/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
|
+++ b/src/main/java/stirling/software/SPDF/EE/LicenseKeyChecker.java
|
|
@@ -44,20 +44,9 @@ public class LicenseKeyChecker {
|
|
if (!applicationProperties.getPremium().isEnabled()) {
|
|
premiumEnabledResult = License.NORMAL;
|
|
} else {
|
|
- String licenseKey = getLicenseKeyContent(applicationProperties.getPremium().getKey());
|
|
- if (licenseKey != null) {
|
|
- premiumEnabledResult = licenseService.verifyLicense(licenseKey);
|
|
- if (License.ENTERPRISE == premiumEnabledResult) {
|
|
- log.info("License key is Enterprise.");
|
|
- } else if (License.PRO == premiumEnabledResult) {
|
|
- log.info("License key is Pro.");
|
|
- } else {
|
|
- log.info("License key is invalid, defaulting to non pro license.");
|
|
- }
|
|
- } else {
|
|
- log.error("Failed to obtain license key content.");
|
|
- premiumEnabledResult = License.NORMAL;
|
|
- }
|
|
+ premiousEnabledResult = License.ENTERPRISE;
|
|
+ applicationProperties.getEnterpriseEdition().setMaxUsers(Integer.MAX_VALUE);
|
|
+ log.info("License key is Enterprise.");
|
|
}
|
|
}
|
|
|