Skip to content

Commit

Permalink
fix: license validity period should be read only #731 (#746)
Browse files Browse the repository at this point in the history
* Bug: license validity period should be read only #731

* fix: license validity period should be read only #731

* fix: license validity period should be read only #731
  • Loading branch information
duttarnab authored Feb 1, 2022
1 parent 5d0b401 commit 73931f5
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 73931f5

Please sign in to comment.