mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[ML] Improve expired license check (#191503)
When a trial license expires, the license falls into a state where it is not seen as being a valid basic license, but rather an "expired" license. The license is still valid and our `isMinimumLicense` check needs to return true in this situation to allow the ML app to redirect to the expired license page. Before (ML page fails to load):  After (we redirect to the license page): 
This commit is contained in:
parent
3a5747803b
commit
0a1be162fe
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ export function isTrialLicense(license: ILicense) {
|
|||
}
|
||||
|
||||
export function isMinimumLicense(license: ILicense) {
|
||||
return license.check(PLUGIN_ID, MINIMUM_LICENSE).state === 'valid';
|
||||
return license.check(PLUGIN_ID, MINIMUM_LICENSE).state === 'valid' || license.isAvailable;
|
||||
}
|
||||
|
||||
export function isMlEnabled(license: ILicense) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue