Skip to content

Commit

Permalink
fix: license validity period should be read only #731
Browse files Browse the repository at this point in the history
  • Loading branch information
duttarnab committed Feb 1, 2022
1 parent fcbd53a commit 164193c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public Boolean activateLicense(LicenseRequest licenseRequest) {
ActivationLicense keyBased = ActivationLicense.fromKey(licenseRequest.getLicenseKey());
License license = licenseManager.activateLicense(keyBased);
log.debug("License activated : {} ", license.getProduct());
return true;
return !license.getData().isExpired();
} catch (Exception e) {
log.error(ErrorResponse.ACTIVATE_LICENSE_ERROR.getDescription(), e);
return false;
Expand Down

0 comments on commit 164193c

Please sign in to comment.