From c81d06d364d3b1f114fb2e7e81db856e7389386d Mon Sep 17 00:00:00 2001 From: Igor Ilic <30923996+dexters1@users.noreply.github.com> Date: Mon, 3 Nov 2025 19:37:52 +0100 Subject: [PATCH] Update cognee/context_global_variables.py Co-authored-by: Pavel Zorin --- cognee/context_global_variables.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cognee/context_global_variables.py b/cognee/context_global_variables.py index b4b848192..6f3965441 100644 --- a/cognee/context_global_variables.py +++ b/cognee/context_global_variables.py @@ -41,11 +41,7 @@ def check_backend_access_control_mode(): if backend_access_control is None: # If backend access control is not defined in environment variables, # enable it by default if graph and vector DBs can support it, otherwise disable it - multi_user_support = check_multi_user_support() - if multi_user_support: - return True - else: - return False + return check_multi_user_support() elif backend_access_control.lower() == "true": # If enabled, ensure that the current graph and vector DBs can support it multi_user_support = check_multi_user_support()