mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-07 19:38:19 +02:00
Fix typesense search when auth is on (#108)
This commit is contained in:
parent
620579cbec
commit
5a04df7eb0
@ -182,7 +182,7 @@ def _build_typesense_filters(
|
||||
|
||||
# Permissions filter
|
||||
if user_id:
|
||||
filter_str += f"{ALLOWED_USERS}:=[{PUBLIC_DOC_PAT}|{user_id}] && "
|
||||
filter_str += f"{ALLOWED_USERS}:=[{PUBLIC_DOC_PAT},{user_id}] && "
|
||||
else:
|
||||
filter_str += f"{ALLOWED_USERS}:={PUBLIC_DOC_PAT} && "
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user