Skip to content

Commit

Permalink
Add missing ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
adhilto committed Jan 3, 2024
1 parent d194196 commit ef10861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rego/Commoncontrols.rego
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ if {
Apps := {"Blogger", "Google Books", "Google Pay", "Google Photos", "Google Play",
"Google Play Console", "Location History", "YouTube"}

AppsAllowingTakoutOU contains App {
AppsAllowingTakoutOU contains App if {
Events := utils.FilterEventsNoOU(LogEvents, "UserTakeoutSettingsProto User Takeout ")
some App in Apps
Filtered := {Event | some Event in Events; Event.AppName == App; Event.OrgUnit == data.OrgUnit}
Expand All @@ -1352,7 +1352,7 @@ AppsAllowingTakoutOU contains App {
LastEvent.NewValue != "DELETE_APPLICATION_SETTING"
}

NonCompliantOUs14_1 contains OU {
NonCompliantOUs14_1 contains OU if {
some OU in utils.OUsWithEvents
Events := utils.FilterEvents(LogEvents, "UserTakeoutSettingsProto User Takeout ", OU)
count(Events) > 0 # Ignore OUs without any events. We're already
Expand Down

0 comments on commit ef10861

Please sign in to comment.