From 5aca3f01b740b6b98eab83ef0139fcc880c1a183 Mon Sep 17 00:00:00 2001 From: Martin Angers Date: Wed, 3 Apr 2024 16:25:37 -0400 Subject: [PATCH] Call update of DDM macos updates only if premium --- server/service/appconfig.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server/service/appconfig.go b/server/service/appconfig.go index fb5fca4102..5cb45b838c 100644 --- a/server/service/appconfig.go +++ b/server/service/appconfig.go @@ -556,8 +556,11 @@ func (svc *Service) ModifyAppConfig(ctx context.Context, p []byte, applyOpts fle // activity if oldAppConfig.MDM.MacOSUpdates.MinimumVersion.Value != appConfig.MDM.MacOSUpdates.MinimumVersion.Value || oldAppConfig.MDM.MacOSUpdates.Deadline.Value != appConfig.MDM.MacOSUpdates.Deadline.Value { - if err := svc.EnterpriseOverrides.MDMAppleEditedMacOSUpdates(ctx, nil, appConfig.MDM.MacOSUpdates); err != nil { - return nil, ctxerr.Wrap(ctx, err, "update DDM profile after macOS updates change") + if license.IsPremium() { + // macOS updates are premium feature + if err := svc.EnterpriseOverrides.MDMAppleEditedMacOSUpdates(ctx, nil, appConfig.MDM.MacOSUpdates); err != nil { + return nil, ctxerr.Wrap(ctx, err, "update DDM profile after macOS updates change") + } } if err := svc.ds.NewActivity(