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
logic.EnterpriseCheckFuncs = append(logic.EnterpriseCheckFuncs, func() {
// == License Handling ==
enableLicenseHook := false
licenseKeyValue := servercfg.GetLicenseKey()
netmakerTenantID := servercfg.GetNetmakerTenantID()
if licenseKeyValue != "" && netmakerTenantID != "" {
enableLicenseHook = true
}
enableLicenseHook := true
// licenseKeyValue := servercfg.GetLicenseKey()
// netmakerTenantID := servercfg.GetNetmakerTenantID()
// if licenseKeyValue != "" && netmakerTenantID != "" {
// enableLicenseHook = true
// }
if !enableLicenseHook {
err := initTrial()
if err != nil {