mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: refactor deployment config (#6347)
This commit is contained in:
@ -259,7 +259,7 @@ func (api *API) updateEntitlements(ctx context.Context) error {
|
||||
return err
|
||||
}
|
||||
|
||||
if entitlements.RequireTelemetry && !api.DeploymentConfig.Telemetry.Enable.Value {
|
||||
if entitlements.RequireTelemetry && !api.DeploymentValues.Telemetry.Enable.Value() {
|
||||
// We can't fail because then the user couldn't remove the offending
|
||||
// license w/o a restart.
|
||||
//
|
||||
@ -272,8 +272,6 @@ func (api *API) updateEntitlements(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
entitlements.Experimental = api.DeploymentConfig.Experimental.Value || len(api.AGPL.Experiments) != 0
|
||||
|
||||
featureChanged := func(featureName codersdk.FeatureName) (changed bool, enabled bool) {
|
||||
if api.entitlements.Features == nil {
|
||||
return true, entitlements.Features[featureName].Enabled
|
||||
|
Reference in New Issue
Block a user