Change Denied to *string

This commit is contained in:
Alex Kursell 2019-02-22 11:48:13 -05:00
parent 62191fc3e2
commit 53538acbaf
4 changed files with 6 additions and 5 deletions

View file

@ -611,7 +611,7 @@ func isLocationAllowed(input interface{}) bool {
return false
}
return loc.Denied == ""
return loc.Denied == nil
}
var (

View file

@ -468,7 +468,7 @@ func TestIsLocationAllowed(t *testing.T) {
}
loc := ingress.Location{
Denied: "",
Denied: nil,
}
isAllowed := isLocationAllowed(&loc)