default to allow all if no rules specified
This commit is contained in:
parent
2f86abe62b
commit
73cf6da65d
@ -29,8 +29,11 @@ func (self *FeedPolicy) AllowsNewsgroup(newsgroup string) (result bool) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if len(self.rules) > 0 {
|
||||
result = allows > 0
|
||||
} else {
|
||||
result = true
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user