From a4ebf872632bddcfcdad4a61c470b71727f4541c Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Sat, 25 Apr 2020 20:55:33 +0200 Subject: [PATCH] check for key --- owrx/controllers/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/owrx/controllers/admin.py b/owrx/controllers/admin.py index 6aa2a4b..9ea8b24 100644 --- a/owrx/controllers/admin.py +++ b/owrx/controllers/admin.py @@ -18,7 +18,7 @@ class AdminController(WebpageController): def handle_request(self): 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) return if self.authentication.isAuthenticated(self.request):