mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 01:31:51 +01:00
quick fix for google doc sync
This commit is contained in:
parent
490a68773b
commit
eb0e20b9e4
@ -110,8 +110,13 @@ def _get_permissions_from_slim_doc(
|
||||
elif permission_type == "group":
|
||||
group_emails.add(permission["emailAddress"])
|
||||
elif permission_type == "domain" and company_domain:
|
||||
if permission["domain"] == company_domain:
|
||||
if permission.get("domain") == company_domain:
|
||||
public = True
|
||||
else:
|
||||
logger.warning(
|
||||
"Permission is type domain but does not match company domain:"
|
||||
f"\n {permission}"
|
||||
)
|
||||
elif permission_type == "anyone":
|
||||
public = True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user