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 {
|
if !hasgroup {
|
||||||
goto notfound
|
goto notfound
|
||||||
}
|
}
|
||||||
|
|
||||||
|
banned, _ := self.database.NewsgroupBanned(group)
|
||||||
|
if banned {
|
||||||
|
goto notfound
|
||||||
|
}
|
||||||
|
|
||||||
pages := self.database.GetGroupPageCount(group)
|
pages := self.database.GetGroupPageCount(group)
|
||||||
if page >= int(pages) {
|
if page >= int(pages) {
|
||||||
goto notfound
|
goto notfound
|
||||||
|
Reference in New Issue
Block a user