in groups/reconcile.go [438:446]
func (rc *RestrictionsConfig) GetRestrictionForPath(path, rootDir string) Restriction {
cleanPath := strings.Trim(strings.TrimPrefix(path, rootDir), string(filepath.Separator))
for _, r := range rc.Restrictions {
if match, err := doublestar.Match(r.Path, cleanPath); err == nil && match {
return r
}
}
return defaultRestriction
}