check for key
This commit is contained in:
parent
dd492fa63c
commit
a4ebf87263
@ -18,7 +18,7 @@ class AdminController(WebpageController):
|
|||||||
|
|
||||||
def handle_request(self):
|
def handle_request(self):
|
||||||
config = Config.get()
|
config = Config.get()
|
||||||
if not config["webadmin_enabled"]:
|
if "webadmin_enabled" not in config or not config["webadmin_enabled"]:
|
||||||
self.send_response("Web Admin is disabled", code=403)
|
self.send_response("Web Admin is disabled", code=403)
|
||||||
return
|
return
|
||||||
if self.authentication.isAuthenticated(self.request):
|
if self.authentication.isAuthenticated(self.request):
|
||||||
|
Loading…
Reference in New Issue
Block a user