From 659d43b9edc68ca5d54c5d7bc738c6bc85ce4eca Mon Sep 17 00:00:00 2001 From: theonlynexus Date: Fri, 22 Jul 2022 00:12:47 +0000 Subject: [PATCH] Fixed condition check --- src/dashboard.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/dashboard.py b/src/dashboard.py index 8704b1d..5e20807 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -90,10 +90,9 @@ def auth_req(): g.CONFIGURATION_PATH = CONFIGURATION_PATH g.cur = g.db.cursor() g.conf = read_and_update_config_file() - req = g.conf.get("Server", "auth_req") session["update"] = UPDATE session["dashboard_version"] = DASHBOARD_VERSION - if req == "true": + if g.conf["Server"]["auth_req"]: if ( "/static/" not in request.path and request.endpoint != "signin"