Archived
1
0

404 for banned newsgroups

This commit is contained in:
Jeff 2017-08-03 21:38:18 -04:00
parent a06a671415
commit cff13becaf

View File

@ -68,6 +68,12 @@ func (self *nullHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if !hasgroup {
goto notfound
}
banned, _ := self.database.NewsgroupBanned(group)
if banned {
goto notfound
}
pages := self.database.GetGroupPageCount(group)
if page >= int(pages) {
goto notfound