Fixed condition check

This commit is contained in:
theonlynexus 2022-07-22 00:12:47 +00:00
parent 6549ce0810
commit 659d43b9ed

View file

@ -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"