disable default pro setup

This commit is contained in:
abhishek9686 2024-11-06 10:42:54 +04:00
parent c6d76df5af
commit 74579e467b

View file

@ -38,12 +38,12 @@ func InitPro() {
controller.ListRoles = proControllers.ListRoles controller.ListRoles = proControllers.ListRoles
logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() { logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() {
// == License Handling == // == License Handling ==
enableLicenseHook := false enableLicenseHook := true
licenseKeyValue := servercfg.GetLicenseKey() // licenseKeyValue := servercfg.GetLicenseKey()
netmakerTenantID := servercfg.GetNetmakerTenantID() // netmakerTenantID := servercfg.GetNetmakerTenantID()
if licenseKeyValue != "" && netmakerTenantID != "" { // if licenseKeyValue != "" && netmakerTenantID != "" {
enableLicenseHook = true // enableLicenseHook = true
} // }
if !enableLicenseHook { if !enableLicenseHook {
err := initTrial() err := initTrial()
if err != nil { if err != nil {