Browse Source

add tenantid check

abhishek9686 1 year ago
parent
commit
1f44817e64
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controllers/server.go

+ 1 - 1
controllers/server.go

@@ -122,7 +122,7 @@ func getStatus(w http.ResponseWriter, r *http.Request) {
 		licenseErr = servercfg.ErrLicenseValidation.Error()
 		licenseErr = servercfg.ErrLicenseValidation.Error()
 	}
 	}
 	var trialEndDate time.Time
 	var trialEndDate time.Time
-	if servercfg.GetLicenseKey() == "" {
+	if servercfg.GetLicenseKey() == "" || servercfg.GetNetmakerTenantID() == "" {
 		trialEndDate, _ = logic.GetTrialEndDate()
 		trialEndDate, _ = logic.GetTrialEndDate()
 	}
 	}
 	currentServerStatus := status{
 	currentServerStatus := status{