Update cognee/context_global_variables.py
Co-authored-by: Pavel Zorin <pazonec@yandex.ru>
This commit is contained in:
parent
2ab2cffd07
commit
c81d06d364
1 changed files with 1 additions and 5 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue