From 8ffa3e5885daa1d81be2e5d6cc2d00cf861ede0a Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 17 Jan 2021 23:31:34 +0100 Subject: [PATCH] policies: fix logic error for sync mode --- authentik/policies/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentik/policies/engine.py b/authentik/policies/engine.py index 1f38356d9..8a13ae29a 100644 --- a/authentik/policies/engine.py +++ b/authentik/policies/engine.py @@ -117,7 +117,7 @@ class PolicyEngine: task = PolicyProcess(binding, self.request, task_end) task.daemon = False LOGGER.debug("P_ENG: Starting Process", policy=binding.policy) - if CURRENT_PROCESS._config.get("daemon"): + if not CURRENT_PROCESS._config.get("daemon"): task.run() else: task.start()