Update cognee/context_global_variables.py

Co-authored-by: Pavel Zorin <pazonec@yandex.ru>
This commit is contained in:
Igor Ilic 2025-11-03 19:42:51 +01:00 committed by GitHub
parent c81d06d364
commit 53521c2068
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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():