Skip to content

Commit

Permalink
quick fix for google doc sync
Browse files Browse the repository at this point in the history
  • Loading branch information
hagen-danswer committed Nov 13, 2024
1 parent 490a687 commit eb0e20b
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 eb0e20b

Please sign in to comment.