Explorar o código

add tenantid check

abhishek9686 hai 1 ano
pai
achega
1f44817e64
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()
 	}
 	var trialEndDate time.Time
-	if servercfg.GetLicenseKey() == "" {
+	if servercfg.GetLicenseKey() == "" || servercfg.GetNetmakerTenantID() == "" {
 		trialEndDate, _ = logic.GetTrialEndDate()
 	}
 	currentServerStatus := status{