Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
VeronikaSolovei9 committed Sep 13, 2023
1 parent 8195162 commit 758033a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions analytics/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ type enabledAnalytics map[string]analytics.Module
func (ea enabledAnalytics) LogAuctionObject(ao *analytics.AuctionObject, ac privacy.ActivityControl) {
for name, module := range ea {
component := privacy.Component{Type: privacy.ComponentTypeAnalytics, Name: name}
if ac.Allow(privacy.ActivityReportAnalytics, component) {
if ac.Allow(privacy.ActivityReportAnalytics, component, privacy.ActivityRequest{}) {
module.LogAuctionObject(ao)
}
}
Expand All @@ -56,7 +56,7 @@ func (ea enabledAnalytics) LogAuctionObject(ao *analytics.AuctionObject, ac priv
func (ea enabledAnalytics) LogVideoObject(vo *analytics.VideoObject, ac privacy.ActivityControl) {
for name, module := range ea {
component := privacy.Component{Type: privacy.ComponentTypeAnalytics, Name: name}
if ac.Allow(privacy.ActivityReportAnalytics, component) {
if ac.Allow(privacy.ActivityReportAnalytics, component, privacy.ActivityRequest{}) {
module.LogVideoObject(vo)
}
}
Expand All @@ -77,7 +77,7 @@ func (ea enabledAnalytics) LogSetUIDObject(so *analytics.SetUIDObject) {
func (ea enabledAnalytics) LogAmpObject(ao *analytics.AmpObject, ac privacy.ActivityControl) {
for name, module := range ea {
component := privacy.Component{Type: privacy.ComponentTypeAnalytics, Name: name}
if ac.Allow(privacy.ActivityReportAnalytics, component) {
if ac.Allow(privacy.ActivityReportAnalytics, component, privacy.ActivityRequest{}) {
module.LogAmpObject(ao)
}
}
Expand All @@ -86,7 +86,7 @@ func (ea enabledAnalytics) LogAmpObject(ao *analytics.AmpObject, ac privacy.Acti
func (ea enabledAnalytics) LogNotificationEventObject(ne *analytics.NotificationEvent, ac privacy.ActivityControl) {
for name, module := range ea {
component := privacy.Component{Type: privacy.ComponentTypeAnalytics, Name: name}
if ac.Allow(privacy.ActivityReportAnalytics, component) {
if ac.Allow(privacy.ActivityReportAnalytics, component, privacy.ActivityRequest{}) {
module.LogNotificationEventObject(ne)
}
}
Expand Down

0 comments on commit 758033a

Please sign in to comment.