Allow certain licenses to disable telemetry (#29093)
#28220 --------- Co-authored-by: Scott Gress <scott@fleetdm.com>
This commit is contained in:
co-authored by
Scott Gress
parent
149cd9daca
commit
437c8114b1
+1
-1
@@ -1120,7 +1120,7 @@ func trySendStatistics(ctx context.Context, ds fleet.Datastore, frequency time.D
|
||||
}
|
||||
|
||||
// If the license is Premium, we should always send usage statisics.
|
||||
if !ac.ServerSettings.EnableAnalytics && !license.IsPremium(ctx) {
|
||||
if !ac.ServerSettings.EnableAnalytics && license.IsAllowDisableTelemetry(ctx) {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user