Skip to content

Commit

Permalink
Merge pull request #3124 from danswer-ai/fix-doc-sync
Browse files Browse the repository at this point in the history
quick fix for google doc sync
  • Loading branch information
hagen-danswer authored Nov 13, 2024
2 parents 490a687 + eb0e20b commit 6066042
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6066042

Please sign in to comment.