Skip to content

Commit

Permalink
chore: add ignore as an "allow"
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Phillips <[email protected]>
  • Loading branch information
spiffcs committed Oct 3, 2024
1 parent 819ecf3 commit 72c76ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grant/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (p Policy) IsDenied(license License, pkg *Package) (bool, *Rule) {
if rule.Glob.Match(toMatch) && toMatch != "" {
var returnVal bool
// set the return value based on the rule mode
if rule.Mode == Allow {
if rule.Mode == Allow || rule.Mode == Ignore {
returnVal = false
} else {
returnVal = true
Expand Down

0 comments on commit 72c76ed

Please sign in to comment.