From 73cf6da65dd65d439345b17d7c7adcf6ac89e912 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Tue, 26 Sep 2017 09:38:05 -0400 Subject: [PATCH] default to allow all if no rules specified --- contrib/backends/srndv2/src/srnd/policy.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/contrib/backends/srndv2/src/srnd/policy.go b/contrib/backends/srndv2/src/srnd/policy.go index 463605c..a8a07c4 100644 --- a/contrib/backends/srndv2/src/srnd/policy.go +++ b/contrib/backends/srndv2/src/srnd/policy.go @@ -29,8 +29,11 @@ func (self *FeedPolicy) AllowsNewsgroup(newsgroup string) (result bool) { } } } - - result = allows > 0 + if len(self.rules) > 0 { + result = allows > 0 + } else { + result = true + } return }