From 53521c2068319d340c3f2b396dbbc7f3f9c80523 Mon Sep 17 00:00:00 2001 From: Igor Ilic <30923996+dexters1@users.noreply.github.com> Date: Mon, 3 Nov 2025 19:42:51 +0100 Subject: [PATCH] Update cognee/context_global_variables.py Co-authored-by: Pavel Zorin --- cognee/context_global_variables.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cognee/context_global_variables.py b/cognee/context_global_variables.py index 6f3965441..3afbf6ff2 100644 --- a/cognee/context_global_variables.py +++ b/cognee/context_global_variables.py @@ -27,13 +27,10 @@ async def set_session_user_context_variable(user): def check_multi_user_support(): graph_db_config = get_graph_context_config() vector_db_config = get_vectordb_context_config() - if ( + return ( graph_db_config["graph_database_provider"] in graph_dbs_with_multi_user_support and vector_db_config["vector_db_provider"] in vector_dbs_with_multi_user_support - ): - return True - else: - return False + ) def check_backend_access_control_mode():