Fix not being able to go to credits or contribute page when there are no servers

This commit is contained in:
luukas 2021-05-02 18:52:10 +03:00
parent db9e6c2fac
commit 092a8e85f1

View File

@ -61,7 +61,7 @@ class PanelHandler(BaseHandler):
}
# if no servers defined, let's go to the build server area
if page_data['server_stats']['total'] == 0 and page != "error":
if page_data['server_stats']['total'] == 0 and page != "error" and page != "credits" and page != "contribute":
self.set_status(301)
self.redirect("/server/step1")
return