Skip to content

Commit

Permalink
fix spellmistake of function name
Browse files Browse the repository at this point in the history
  • Loading branch information
mistadave committed Jun 29, 2023
1 parent 56ad65b commit 1235cc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/common/eventmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ func (*eventRulesContainer) checkFsEventMatch(conditions *dataprovider.EventCond
if !checkEventConditionPatterns(params.Role, conditions.Options.RoleNames) {
return false
}
if !checkEventGroupConditionPatters(params.Groups, conditions.Options.GroupNames) {
if !checkEventGroupConditionPatterns(params.Groups, conditions.Options.GroupNames) {
return false
}
if !checkEventConditionPatterns(params.VirtualPath, conditions.Options.FsPaths) {
Expand Down Expand Up @@ -1138,7 +1138,7 @@ func checkUserConditionOptions(user *dataprovider.User, conditions *dataprovider
if !checkEventConditionPatterns(user.Role, conditions.RoleNames) {
return false
}
if !checkEventGroupConditionPatters(user.Groups, conditions.GroupNames) {
if !checkEventGroupConditionPatterns(user.Groups, conditions.GroupNames) {
return false
}
return true
Expand All @@ -1165,7 +1165,7 @@ func checkEventConditionPatterns(name string, patterns []dataprovider.ConditionP
return matches
}

func checkEventGroupConditionPatters(groups []sdk.GroupMapping, patterns []dataprovider.ConditionPattern) bool {
func checkEventGroupConditionPatterns(groups []sdk.GroupMapping, patterns []dataprovider.ConditionPattern) bool {
if len(patterns) == 0 {
return true
}
Expand Down

0 comments on commit 1235cc9

Please sign in to comment.