File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -31052,7 +31052,29 @@ func HandleCheckLicense(ctx context.Context, org Org) Org {
3105231052 org.SyncFeatures.WorkflowExecutions.Active = false
3105331053 }
3105431054
31055- // For the subsctiption
31055+ if len(shuffleLicenseKey) > 0 {
31056+ license := checkNoInternet()
31057+ if license.Valid == true {
31058+ org.Licensed = true
31059+ if license.Environment.Limit > org.SyncFeatures.MultiEnv.Limit {
31060+ org.SyncFeatures.MultiEnv.Limit = license.Environment.Limit
31061+ org.SyncFeatures.MultiEnv.Active = license.Environment.Active
31062+ }
31063+
31064+ if license.Tenant.Limit > org.SyncFeatures.MultiTenant.Limit {
31065+ org.SyncFeatures.MultiTenant.Limit = license.Tenant.Limit
31066+ org.SyncFeatures.MultiTenant.Active = license.Tenant.Active
31067+ }
31068+
31069+ if license.WorkflowExecutions.Limit > org.SyncFeatures.WorkflowExecutions.Limit {
31070+ org.SyncFeatures.WorkflowExecutions.Limit = license.WorkflowExecutions.Limit
31071+ org.SyncFeatures.WorkflowExecutions.Active = license.WorkflowExecutions.Active
31072+ }
31073+
31074+ org.SyncFeatures.Branding.Active = license.Branding
31075+ }
31076+ }
31077+
3105631078 subscriptionCacheKey := fmt.Sprintf("org_subscriptions_%s", org.Id)
3105731079 cachedData, err := GetCache(ctx, subscriptionCacheKey)
3105831080 if err != nil {
You can’t perform that action at this time.
0 commit comments