404 for banned newsgroups
This commit is contained in:
parent
a06a671415
commit
cff13becaf
@ -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
|
||||
|
Reference in New Issue
Block a user