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:37:52 +01:00 committed by GitHub
parent 2ab2cffd07
commit c81d06d364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,11 +41,7 @@ def check_backend_access_control_mode():
if backend_access_control is None: if backend_access_control is None:
# If backend access control is not defined in environment variables, # 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 # enable it by default if graph and vector DBs can support it, otherwise disable it
multi_user_support = check_multi_user_support() return check_multi_user_support()
if multi_user_support:
return True
else:
return False
elif backend_access_control.lower() == "true": elif backend_access_control.lower() == "true":
# If enabled, ensure that the current graph and vector DBs can support it # If enabled, ensure that the current graph and vector DBs can support it
multi_user_support = check_multi_user_support() multi_user_support = check_multi_user_support()